Subgraph
linnet_py Class
Subgraph()Subgraph represented as a bitset of hedges.
Member details
empty
Class method#
empty(size: int) -> SubgraphCreate an empty subgraph of the given size (number of hedges).
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
size | int | — | — |
full
Class method#
full(size: int) -> SubgraphCreate a full subgraph including all hedges.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
size | int | — | — |
from_hedges
Class methodto_hedges
Methodsize
Methodn_included
Methodincludes
Method#
includes(hedge: Any) -> boolWhether a hedge is included.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
hedge | Any | — | — |
union
Method#
union(other: Subgraph) -> SubgraphUnion with another subgraph.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
intersection
Method#
intersection(other: Subgraph) -> SubgraphIntersection with another subgraph.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
sym_diff
Method#
sym_diff(other: Subgraph) -> SubgraphSymmetric difference with another subgraph.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
subtract
Method#
subtract(other: Subgraph) -> SubgraphSubtract another subgraph.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
__repr__
MethodView generated signature source: docs/api/python/linnet-py.pyi:682