3.1.11.3. graph/GraphInterface

3.1.11.3.1. Class GraphVertex

class mod.GraphVertex

A descriptor of either a vertex in a graph, or a null vertex.

__init__(self)

Constructs a null descriptor.

isNull()
Returns

whether this is a null descriptor or not.

Return type

bool

id

(Read-only) The index of the vertex. It will be in the range \([0, numVertices[\).

Type

int

Raises

LogicError if it is a null descriptor.

graph

(Read-only) The graph the vertex belongs to.

Type

Graph

Raises

LogicError if it is a null descriptor.

degree

(Read-only) The degree of the vertex.

Type

int

Raises

LogicError if it is a null descriptor.

incidentEdges

(Read-only) A range of incident edges to this vertex.

Type

GraphIncidentEdgeRange

Raises

LogicError if it is a null descriptor.

stringLabel

(Read-only) The string label of the vertex.

Type

str

Raises

LogicError if it is a null descriptor.

atomId

(Read-only) The atom id of the vertex.

Type

AtomId

Raises

LogicError if it is a null descriptor.

isotope

(Read-only) The isotope of the vertex.

Type

Isotope

Raises

LogicError if it is a null descriptor.

charge

(Read-only) The charge of the vertex.

Type

Charge

Raises

LogicError if it is a null descriptor.

radical

(Read-only) The radical status of the vertex.

Type

bool

Raises

LogicError if it is a null descriptor.

printStereo()
printStereo(p)

Print the stereo configuration for the vertex.

Parameters

p (GraphPrinter) – the printing options used for the depiction.

Returns

the name of the PDF-file that will be compiled in post-processing.

Return type

str

Raises

LogicError if it is a null descriptor.

3.1.11.3.2. Class GraphEdge

class mod.GraphEdge

A descriptor of either an edge in a graph, or a null edge.

__init__(self)

Constructs a null descriptor.

isNull()
Returns

whether this is a null descriptor or not.

Return type

bool

graph

(Read-only) The graph the edge belongs to.

Type

Graph

Raises

LogicError if it is a null descriptor.

source

(Read-only) The source vertex of the edge.

Type

GraphVertex

Raises

LogicError if it is a null descriptor.

target

(Read-only) The target vertex of the edge.

Type

GraphVertex

Raises

LogicError if it is a null descriptor.

stringLabel

(Read-only) The string label of the edge.

Type

str

Raises

LogicError if it is a null descriptor.

bondType

(Read-only) The bond type of the edge.

Type

BondType

Raises

LogicError if it is a null descriptor.