org.graphstream.graph
Interface EdgeFactory<T extends Edge>


public interface EdgeFactory<T extends Edge>

An interface aimed at dynamically creating edge objects.

Since:
September 2007

Method Summary
 T newInstance(String id, Node src, Node dst, boolean directed)
          Create a new instance of edge.
 

Method Detail

newInstance

T newInstance(String id,
              Node src,
              Node dst,
              boolean directed)
Create a new instance of edge.

Parameters:
id - The new edge identifier.
src - The source node.
dst - The target node.
directed - Is the edge directed (in the direction source toward target).
Returns:
The newly created edge.


Copyright © 2012. All Rights Reserved.