edge_differences
Signature/Parameters
Compare edge sets between two DAGs by edge type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
G2
|
DAG
|
Graph to compare with the current instance. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, dict[str, list]]
|
Dictionary with keys |
Examples:
>>> G1 = DAG(graph="X -> Y")
>>> G2 = DAG(graph="X <- Y")
>>> diff = G1.edge_differences(G2)
>>> diff["G1"]["directed"]
[('X', 'Y')]