com.kuka.graph.impl
Class DefaultEdgeFactory<N>

java.lang.Object
  extended by com.kuka.graph.impl.DefaultEdgeFactory<N>
Type Parameters:
N - the type of the source and target node of the edge
All Implemented Interfaces:
EdgeFactory<N,DefaultEdge<N>>, Serializable

public final class DefaultEdgeFactory<N>
extends Object
implements EdgeFactory<N,DefaultEdge<N>>

Edge factory implementation creating instances of DefaultEdge.

See Also:
Serialized Form

Constructor Summary
DefaultEdgeFactory()
           
 
Method Summary
 DefaultEdge<N> createEdge(N source, N target)
          Creates a new edge from the specified source node to the target node and returns the created edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEdgeFactory

public DefaultEdgeFactory()
Method Detail

createEdge

public DefaultEdge<N> createEdge(N source,
                                 N target)
Description copied from interface: EdgeFactory
Creates a new edge from the specified source node to the target node and returns the created edge.

Specified by:
createEdge in interface EdgeFactory<N,DefaultEdge<N>>
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


Copyright © 2019. All rights reserved.