Graph.fromStatements constructor

Graph.fromStatements({
  1. String? id,
  2. GraphType type = GraphType.graph,
  3. bool strict = false,
  4. required List<Statement> statements,
})

Create a graph from a list of statements.

Implementation

factory Graph.fromStatements({
  String? id,
  GraphType type = GraphType.graph,
  bool strict = false,
  required List<Statement> statements,
}) =>
    Graph(
      id: id,
      stmtList: StmtList(statements),
      strict: strict,
      type: type,
    );