Initialize the data structure and set the edges from an iterable.
This method (or one of the two alternatives) must be called
after instantiation, unless readFields() is called.
Note: whether parallel edges are allowed or not depends on the
implementation.
Parameters:
edges - Iterable of edges
initialize
void initialize(int capacity)
Initialize the data structure with the specified initial capacity.
This method (or one of the two alternatives) must be called
after instantiation, unless readFields() is called.
Parameters:
capacity - Initial capacity
initialize
void initialize()
Initialize the data structure with the default initial capacity.
This method (or one of the two alternatives) must be called
after instantiation, unless readFields() is called.