All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.javagimmicks.graph.DefaultEdgeFactory Maven / Gradle / Ivy

There is a newer version: 0.99-alpha1
Show newest version
package net.sf.javagimmicks.graph;

/**
 * A {@link EdgeFactory} implementation that creates {@link DefaultEdge}
 * instances.
 */
public class DefaultEdgeFactory implements EdgeFactory>
{
   /**
    * Creates a new instance.
    */
   public DefaultEdgeFactory()
   {}

   @Override
   public DefaultEdge createEdge(final Graph> graph,
         final VertexType source, final VertexType target)
   {
      return new DefaultEdge(graph, source, target);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy