net.sf.javagimmicks.graph.DefaultEdgeFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gimmicks Show documentation
Show all versions of gimmicks Show documentation
Utility classes, APIs and tools for Java
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