de.cesr.more.util.io
Class MGraphMlWriter<AgentType,E extends MoreEdge<? super AgentType>>
java.lang.Object
edu.uci.ics.jung.io.GraphMLWriter<AgentType,E>
de.cesr.more.util.io.MGraphMlWriter<AgentType,E>
public class MGraphMlWriter<AgentType,E extends MoreEdge<? super AgentType>>
- extends GraphMLWriter<AgentType,E>
MORe
Added "attr.name" to key definitions (igraph'S read.graphy breaks without > bug reported)
- Date:
- 25.10.2011
Method Summary |
protected String |
getType(String description)
|
void |
save(Hypergraph<AgentType,E> graph,
Writer w)
This method is also overridden since it occurs that RS's older JUNG version is loaded
before the referenced Jung-IO library and these versions have an erroneous save-method. |
void |
save(MoreNetwork<AgentType,E> network,
Hypergraph<AgentType,E> graph,
Writer w)
|
void |
save(MoreNetwork<AgentType,E> network,
Writer w)
|
protected void |
writeKeySpecification(String key,
String type,
GraphMLMetadata<?> ds,
BufferedWriter bw)
|
protected void |
writeNetworkInformation(MoreNetwork<AgentType,E> network,
BufferedWriter bw)
|
Methods inherited from class edu.uci.ics.jung.io.GraphMLWriter |
addEdgeData, addGraphData, addVertexData, format, setEdgeData, setEdgeDescriptions, setEdgeIDs, setGraphData, setGraphDescriptions, setVertexData, setVertexDescriptions, setVertexIDs, writeEdgeData, writeIndentedText, writeVertexData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MGraphMlWriter
public MGraphMlWriter()
getType
protected String getType(String description)
writeKeySpecification
protected void writeKeySpecification(String key,
String type,
GraphMLMetadata<?> ds,
BufferedWriter bw)
throws IOException
- Overrides:
writeKeySpecification
in class GraphMLWriter<AgentType,E extends MoreEdge<? super AgentType>>
- Throws:
IOException
save
public void save(Hypergraph<AgentType,E> graph,
Writer w)
throws IOException
- This method is also overridden since it occurs that RS's older JUNG version is loaded
before the referenced Jung-IO library and these versions have an erroneous save-method.
- Overrides:
save
in class GraphMLWriter<AgentType,E extends MoreEdge<? super AgentType>>
- Parameters:
graph
- w
-
- Throws:
IOException
save
public void save(MoreNetwork<AgentType,E> network,
Writer w)
throws IOException
- Parameters:
graph
- w
-
- Throws:
IOException
save
public void save(MoreNetwork<AgentType,E> network,
Hypergraph<AgentType,E> graph,
Writer w)
throws IOException
- Parameters:
graph
- w
-
- Throws:
IOException
writeNetworkInformation
protected void writeNetworkInformation(MoreNetwork<AgentType,E> network,
BufferedWriter bw)
throws IOException
- Throws:
IOException