Documentation of 'org.jgrapht.graph.ClassBasedEdgeFactory' Java class
ClassBasedEdgeFactory
org.jgrapht.graph

Class ClassBasedEdgeFactory<V,E>

  • Type Parameters:
    V - the graph vertex type
    E - the graph edge type
    All Implemented Interfaces:
    java.io.Serializable, EdgeFactory<V,E>


    public class ClassBasedEdgeFactory<V,E>
    extends java.lang.Object
    implements EdgeFactory<V,E>, java.io.Serializable
    An EdgeFactory for producing edges by using a class as a factory.
    Since:
    Jul 14, 2003
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ClassBasedEdgeFactory(java.lang.Class<? extends E> edgeClass)
      Create a new class based edge factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      E createEdge(V source, V target)
      Creates a new edge whose endpoints are the specified source and target vertices.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassBasedEdgeFactory

        public ClassBasedEdgeFactory(java.lang.Class<? extends E> edgeClass)
        Create a new class based edge factory.
        Parameters:
        edgeClass - the edge class
    • Method Detail

      • createEdge

        public E createEdge(V source,
                            V target)
        Description copied from interface: EdgeFactory
        Creates a new edge whose endpoints are the specified source and target vertices.
        Specified by:
        createEdge in interface EdgeFactory<V,E>
        Parameters:
        source - the source vertex.
        target - the target vertex.
        Returns:
        a new edge whose endpoints are the specified source and target vertices.
        See Also:
        EdgeFactory.createEdge(Object, Object)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.