Subgraph class

A subgraph within a larger graph.

Implemented types

Constructors

Subgraph(String? id, StmtList stmtList)
const
Subgraph.create({String? id, EdgeOp opType = EdgeOp.directed, required Map<String, List<String>> data})
Create a graph from a mapping of node to connected nodes.
factory
Subgraph.fromStatements({String? id, required List<Statement> statements})
Create a subgraph from a list of statements.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id String?
The id of this subgraph.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stmtList StmtList
The list of statements that make up this subgraph.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData({bool inlineSubgraphs = true}) Map<String, List<String>>
Convert a subgraph into a mapping of node to connected nodes.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override