Class GraphElementParser<G extends Hypergraph<V,E> , V, E>
java.lang.Object
edu.uci.ics.jung.io.graphml.parser.AbstractElementParser<G,V,E>
edu.uci.ics.jung.io.graphml.parser.GraphElementParser<G,V,E>
- All Implemented Interfaces:
ElementParser
public class GraphElementParser<G extends Hypergraph<V,E>, V, E>
extends AbstractElementParser<G,V,E>
Parses graph elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddEdgesToGraph(G graph, Collection<EdgeMetadata> metadata, Map<String, V> idToVertexMap) private voidaddHyperEdgesToGraph(G graph, Collection<HyperEdgeMetadata> metadata, Map<String, V> idToVertexMap) private voidaddVerticesToGraph(G graph, Collection<V> vertices) parse(XMLEventReader xmlEventReader, StartElement start) Methods inherited from class AbstractElementParser
applyKeys, getParser, getParserContext, getUnknownParser, verifyMatch
-
Constructor Details
-
GraphElementParser
-
-
Method Details
-
parse
public GraphMetadata parse(XMLEventReader xmlEventReader, StartElement start) throws GraphIOException - Throws:
GraphIOException
-
addVerticesToGraph
-
addEdgesToGraph
private void addEdgesToGraph(G graph, Collection<EdgeMetadata> metadata, Map<String, V> idToVertexMap) throws GraphIOException- Throws:
GraphIOException
-
addHyperEdgesToGraph
private void addHyperEdgesToGraph(G graph, Collection<HyperEdgeMetadata> metadata, Map<String, V> idToVertexMap) throws GraphIOException- Throws:
GraphIOException
-