bigraph-viz
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: bigraph-viz | ||
| Version: 0.1.8 | ||
| Version: 0.1.9 | ||
| Summary: A graphviz-based plotting tool for compositional bigraph schema | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/vivarium-collective/bigraph-viz |
@@ -285,5 +285,7 @@ import os | ||
| removed_keys = set(collapse_map.keys()) | ||
| for group in ['input_edges', 'output_edges', 'bidirectional_edges', 'disconnected_input_edges', 'disconnected_output_edges']: | ||
| for group in ['input_edges', 'output_edges', 'bidirectional_edges', 'disconnected_input_edges', | ||
| 'disconnected_output_edges']: | ||
| edges = graph_dict.get(group, []) | ||
| new_edges = [] | ||
| seen = set() | ||
| for edge in edges: | ||
@@ -293,6 +295,13 @@ key = str(edge['edge_path']) | ||
| edge['edge_path'] = collapse_map[key] | ||
| if edge not in new_edges: | ||
| if key not in removed_keys: | ||
| # Build a tuple that uniquely identifies this edge after collapse | ||
| edge_key = ( | ||
| group, | ||
| str(edge['edge_path']), | ||
| edge.get('port'), | ||
| str(edge.get('target_path')) | ||
| ) | ||
| if edge_key not in seen: | ||
| seen.add(edge_key) | ||
| new_edges.append(edge) | ||
| elif key not in removed_keys: | ||
| new_edges.append(edge) | ||
| graph_dict[group] = new_edges | ||
@@ -498,2 +507,5 @@ | ||
| if len(path) > 1: | ||
| graph['place_edges'].append({'parent': path[:-1], 'child': path}) | ||
| if isinstance(state, dict): | ||
@@ -500,0 +512,0 @@ for key, value in state.items(): |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: bigraph-viz | ||
| Version: 0.1.8 | ||
| Version: 0.1.9 | ||
| Summary: A graphviz-based plotting tool for compositional bigraph schema | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/vivarium-collective/bigraph-viz |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "bigraph-viz" | ||
| version = "0.1.8" | ||
| version = "0.1.9" | ||
| description = "A visualization method for displaying the structure of process bigraphs" | ||
@@ -10,0 +10,0 @@ readme = "README.md" |
+1
-1
@@ -5,3 +5,3 @@ import re | ||
| VERSION = '0.1.8' | ||
| VERSION = '0.1.9' | ||
@@ -8,0 +8,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
90151
0.51%1672
0.66%