toGraph method

Graph<Dependency, DependencyGraphNode> toGraph({
  1. TreeToGraphLinkType linkType = TreeToGraphLinkType.direct,
})

Convert this dependency tree to an dependency graph.

Implementation

Graph<Dependency, DependencyGraphNode> toGraph({
  TreeToGraphLinkType linkType = TreeToGraphLinkType.direct,
}) =>
    treeToGraph(
      this,
      (dep) => DependencyGraphNode(dep),
      linkType: linkType,
    );