Subgraph
symbolica.community.graph Class
Subgraph()A graph-bound structural selection.
Member details
graph
Property · read-only#graph: GraphNo description is available for this member.
revision
Property · read-only#revision: intNo description is available for this member.
size
Property · read-only#size: intNo description is available for this member.
n_half_edges
Property · read-only#n_half_edges: intNo description is available for this member.
n_isolated_nodes
Property · read-only#n_isolated_nodes: intNo description is available for this member.
__len__
Method#__len__() -> intNo description is available for this member.
__bool__
Method#__bool__() -> boolNo description is available for this member.
includes
Method#includes(half_edge: int) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
half_edge | int | — | — |
half_edge_indices
Method#half_edge_indices() -> list[int] Return stable indices suitable for constructing another selection on this revision.
isolated_node_indices
Method#isolated_node_indices() -> list[int] Return the explicitly selected zero-crown node indices.
includes_node
Method#includes_node(node: int) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
node | int | — | — |
to_half_edges
Method#to_half_edges() -> list[HalfEdge] No description is available for this member.
is_subset
Method#is_subset(other: Subgraph) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
is_superset
Method#is_superset(other: Subgraph) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
is_disjoint
Method#is_disjoint(other: Subgraph) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
union
Method#union(other: Subgraph) -> SubgraphNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
intersection
Method#intersection(other: Subgraph) -> SubgraphNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
symmetric_difference
Method#symmetric_difference(other: Subgraph) -> SubgraphNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
difference
Method#difference(other: Subgraph) -> SubgraphNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
complement
Method#complement() -> SubgraphNo description is available for this member.
__contains__
Method#__contains__(half_edge: int) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
half_edge | int | — | — |
__or__
Method#__or__(other: Subgraph) -> SubgraphNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
__and__
Method#__and__(other: Subgraph) -> SubgraphNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
__xor__
Method#__xor__(other: Subgraph) -> SubgraphNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
__sub__
Method#__sub__(other: Subgraph) -> SubgraphNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
__invert__
Method#__invert__() -> SubgraphNo description is available for this member.
__eq__
Method#__eq__(other: object) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | object | — | — |
__le__
Method#__le__(other: Subgraph) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
__lt__
Method#__lt__(other: Subgraph) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
__ge__
Method#__ge__(other: Subgraph) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
__gt__
Method#__gt__(other: Subgraph) -> boolNo description is available for this member.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Subgraph | — | — |
render
Method#render(*, config: RenderSettings | None = None) -> DiagramView Prepare the full owner graph with this selection highlighted and its complement dotted. The owner's layout, drawing configuration, and topology remain unchanged.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
config | RenderSettings | None | None | — |
to_svg
Method#to_svg(*, config: RenderSettings | None = None, browser: Optional[str] = None) -> str Render this selection in the context of the full graph, including isolated nodes.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
config | RenderSettings | None | None | — |
browser | Optional[ | None | — |
_mime_
Method#_mime_() -> AnyNo description is available for this member.
_repr_mimebundle_
Method#_repr_mimebundle_(include: Optional[Sequence[str]] = None, exclude: Optional[Sequence[str]] = None) -> Any Show the selected half-edges within their complete graph in notebook output.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
include | Optional[ | None | — |
exclude | Optional[ | None | — |
__repr__
Method#__repr__() -> strNo description is available for this member.
View generated signature source: docs/api/python/linnet-graph.pyi:1379