map<T1 extends Object, NewNode extends GraphNode<T1>> abstract method

Graph<T1, NewNode> map<T1 extends Object, NewNode extends GraphNode<T1>>(
  1. NewNode createNode(
    1. T
    )
)

Map every node in the graph to an new node type. It may be used for converting from one specialized GraphNode implementation to another, or for converting each GraphNode value from type T to type NewT for example.

Implementation

Graph<T1, NewNode> map<T1 extends Object, NewNode extends GraphNode<T1>>(
  NewNode Function(T) createNode,
);