com.kuka.graph
Interface EdgeFactory<N,E>

Type Parameters:
N - the type of the source and target node of the edge
E - the type of the edge to create
All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultEdgeFactory

public interface EdgeFactory<N,E>
extends Serializable

Factory for creating edges.

See Also:
Edge

Method Summary
 E createEdge(N source, N target)
          Creates a new edge from the specified source node to the target node and returns the created edge.
 

Method Detail

createEdge

E createEdge(N source,
             N target)
Creates a new edge from the specified source node to the target node and returns the created edge.

Parameters:
source - the source node of the edge that is to be created
target - the target node of the edge that is to be created
Returns:
the created edge
Throws:
NullPointerException - if the specified source or target node is null


Copyright © 2019. All rights reserved.