Linnet · latest
On this page

Subgraph

symbolica.community.graph Class

Subgraph()

A graph-bound structural selection.

Member details

graph

Property · read-only#
graph: Graph

No description is available for this member.

revision

Property · read-only#
revision: int

No description is available for this member.

size

Property · read-only#
size: int

No description is available for this member.

n_half_edges

Property · read-only#
n_half_edges: int

No description is available for this member.

n_isolated_nodes

Property · read-only#
n_isolated_nodes: int

No description is available for this member.

__len__

Method#
__len__() -> int

No description is available for this member.

__bool__

Method#
__bool__() -> bool

No description is available for this member.

includes

Method#
includes(half_edge: int) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
half_edgeint——

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) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
nodeint——

to_half_edges

Method#
to_half_edges() -> list[HalfEdge]

No description is available for this member.

is_subset

Method#
is_subset(other: Subgraph) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

is_superset

Method#
is_superset(other: Subgraph) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

is_disjoint

Method#
is_disjoint(other: Subgraph) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

union

Method#
union(other: Subgraph) -> Subgraph

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

intersection

Method#
intersection(other: Subgraph) -> Subgraph

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

symmetric_difference

Method#
symmetric_difference(other: Subgraph) -> Subgraph

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

difference

Method#
difference(other: Subgraph) -> Subgraph

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

complement

Method#
complement() -> Subgraph

No description is available for this member.

__contains__

Method#
__contains__(half_edge: int) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
half_edgeint——

__or__

Method#
__or__(other: Subgraph) -> Subgraph

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

__and__

Method#
__and__(other: Subgraph) -> Subgraph

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

__xor__

Method#
__xor__(other: Subgraph) -> Subgraph

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

__sub__

Method#
__sub__(other: Subgraph) -> Subgraph

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

__invert__

Method#
__invert__() -> Subgraph

No description is available for this member.

__eq__

Method#
__eq__(other: object) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherobject——

__le__

Method#
__le__(other: Subgraph) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

__lt__

Method#
__lt__(other: Subgraph) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

__ge__

Method#
__ge__(other: Subgraph) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

__gt__

Method#
__gt__(other: Subgraph) -> bool

No description is available for this member.

Parameters

NameTypeDefaultDescription
otherSubgraph——

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

NameTypeDefaultDescription
configRenderSettings | NoneNone—

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

NameTypeDefaultDescription
configRenderSettings | NoneNone—
browserOptional[str]None—

_mime_

Method#
_mime_() -> Any

No 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

NameTypeDefaultDescription
includeOptional[Sequence[str]]None—
excludeOptional[Sequence[str]]None—

__repr__

Method#
__repr__() -> str

No description is available for this member.