Package com.algo.structure
Class UndirectedGraph
- java.lang.Object
-
- com.algo.plugins.XmlMarshallable
-
- com.algo.structure.Structure<Vertex,Edge>
-
- com.algo.structure.UndirectedGraph
-
- All Implemented Interfaces:
java.io.Serializable
public class UndirectedGraph extends Structure<Vertex,Edge> implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.algo.structure.Structure
edgeIdHoles, vertexIdHoles
-
-
Constructor Summary
Constructors Constructor Description UndirectedGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgecreateEdge(Configuration config)VertexcreateVertex()Creates a new vertex instance without adding it to the structure.VertexcreateVertex(Configuration config)Creates a new vertex instance without adding it to the structure.-
Methods inherited from class com.algo.structure.Structure
addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addEdges, addVertex, addVertex, addVertex, addVertex, addVertex, addVertex, addVertices, adjacent, alignHorizontallyFirst, alignHorizontallyMean, alignVerticallyMean, clear, collapseEdges, createEdge, createEdge, edgesBetweenVertices, fromXml, getDescription, getEdgeByEndVertices, getEdgeById, getEdgeByVertexIds, getEdgeByVertexIdsAndId, getEdges, getEdgesT, getFileReference, getRandomEdge, getRandomVertex, getVertexById, getVertices, getVerticesT, hasFileReference, incToString, isEmpty, loadFromFile, loadFromStream, maximumCoordinate, mergeStructure, pollNextFreeEdgeID, pollNextFreeVertexID, removeEdge, removeEdge, removeEdge, removeVertex, removeVertexByID, removeVertices, setEdgesT, setFileReference, setVerticesT, snapToGrid, tgfToString, toIncM, toSimpleXml, toXml, writeToFile, writeToStream, xmlToString
-
Methods inherited from class com.algo.plugins.XmlMarshallable
xmlName
-
-
-
-
Method Detail
-
createVertex
public Vertex createVertex()
Description copied from class:StructureCreates a new vertex instance without adding it to the structure.- Specified by:
createVertexin classStructure<Vertex,Edge>- Returns:
- The new vertex.
-
createVertex
public Vertex createVertex(Configuration config)
Description copied from class:StructureCreates a new vertex instance without adding it to the structure.- Specified by:
createVertexin classStructure<Vertex,Edge>- Returns:
- The new vertex.
-
createEdge
public Edge createEdge(Configuration config)
-
-