Package edu.uci.ics.jung.io.graphml
Class GraphMetadata
java.lang.Object
edu.uci.ics.jung.io.graphml.AbstractMetadata
edu.uci.ics.jung.io.graphml.GraphMetadata
- All Implemented Interfaces:
Metadata
Metadata structure for the 'graph' GraphML element.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface edu.uci.ics.jung.io.graphml.Metadata
Metadata.MetadataType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private GraphMetadata.EdgeDefault
private final Map
<Object, EdgeMetadata> private Object
private final Map
<Object, HyperEdgeMetadata> private String
private final Map
<Object, NodeMetadata> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEdgeMetadata
(Object edge, EdgeMetadata metadata) void
addHyperEdgeMetadata
(Object edge, HyperEdgeMetadata metadata) void
addNodeMetadata
(Object vertex, NodeMetadata metadata) getEdgeMetadata
(Object edge) getEdgeProperty
(Object edge, String key) Gets the property for the given edge object.getGraph()
getHyperEdgeMetadata
(Object edge) getId()
Gets the metadata type of this object.getNodeMetadata
(Object vertex) getVertexProperty
(Object vertex, String key) Gets the property for the given vertex object.void
setDescription
(String desc) void
setEdgeDefault
(GraphMetadata.EdgeDefault edgeDefault) void
void
Methods inherited from class edu.uci.ics.jung.io.graphml.AbstractMetadata
addData, getProperties, getProperty, setProperty
-
Field Details
-
id
-
edgeDefault
-
description
-
graph
-
nodes
-
edges
-
hyperEdges
-
-
Constructor Details
-
GraphMetadata
public GraphMetadata()
-
-
Method Details
-
getId
-
setId
-
getEdgeDefault
-
setEdgeDefault
-
getDescription
-
setDescription
-
addNodeMetadata
-
getNodeMetadata
-
getNodeMap
-
addEdgeMetadata
-
getEdgeMetadata
-
getEdgeMap
-
addHyperEdgeMetadata
-
getHyperEdgeMetadata
-
getHyperEdgeMap
-
getGraph
-
setGraph
-
getMetadataType
Description copied from interface:Metadata
Gets the metadata type of this object.- Returns:
- the metadata type
-
getVertexProperty
Gets the property for the given vertex object.- Parameters:
vertex
- the subject vertexkey
- the property key- Returns:
- the property value
- Throws:
IllegalArgumentException
- thrown if there is no metadata associated with the provided vertex object.
-
getEdgeProperty
Gets the property for the given edge object.- Parameters:
edge
- the subject edge.key
- the property key- Returns:
- the property value
- Throws:
IllegalArgumentException
- thrown if there is no metadata associated with the provided edge object.
-