Graph class

A graph.

Graphs can be parsed using DotParser.parseGraph and can be converted back to Dot Language by calling toString. See Graph.create and Graph.fromStatements for creating a graph programmatically.

Constructors

Graph({required String? id, required StmtList stmtList, required bool strict, required GraphType type})
const
Graph.create({String? id, GraphType type = GraphType.graph, bool strict = false, required Map<String, List<String>> data})
Create a graph from a mapping of node to connected nodes.
factory
Graph.fromStatements({String? id, GraphType type = GraphType.graph, bool strict = false, required List<Statement> statements})
Create a graph from a list of statements.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id String?
The ID of this graph.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stmtList StmtList
The statement list that composes this graph.
final
strict bool
Whether this graph is in strict mode.
final
type GraphType
The type of this graph.
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 graph 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