Matching
A Matching (i.e., a set of edges that do not share any nodes)
Methods
| Method | Description |
|---|---|
dst | Get the matched destination node for a source node |
edge_for_dst | Get the matched edge for a destination node |
edge_for_src | Get the matched edge for a source node |
edges | Get a view of the matched edges |
src | Get the matched source node for a destination node |
Method Details
dst
Signature: dst(src)
Get the matched destination node for a source node
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
src | NodeInput | - | The source node |
Returns
| Type | Description |
|---|---|
| Node, optional | The matched destination node if it exists |
edge_for_dst
Signature: edge_for_dst(dst)
Get the matched edge for a destination node
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
dst | NodeInput | - | The source node |
Returns
| Type | Description |
|---|---|
| Edge, optional | The matched edge if it exists |
edge_for_src
Signature: edge_for_src(src)
Get the matched edge for a source node
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
src | NodeInput | - | The source node |
Returns
| Type | Description |
|---|---|
| Edge, optional | The matched edge if it exists |
edges
Get a view of the matched edges
Returns
| Type | Description |
|---|---|
| Edges | The edges in the matching |
src
Signature: src(dst)
Get the matched source node for a destination node
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
dst | NodeInput | - | The destination node |
Returns
| Type | Description |
|---|---|
| Node, optional | The matched source node if it exists |