G
- V
- E
- public class GINMLWriter<G extends Graph<V,E>,V,E extends Edge<V>> extends Object
Modifier and Type | Field and Description |
---|---|
protected EdgeAttributesReader |
eReader |
protected G |
graph |
protected String |
graphClassName |
protected NodeAttributesReader |
nReader |
protected StyleManager<V,E> |
styleManager |
Constructor and Description |
---|
GINMLWriter(G graph,
String graphClassName)
Create a GINML writer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributeTag(XMLWriter out,
String name,
boolean value) |
protected void |
addAttributeTag(XMLWriter out,
String name,
int value) |
protected void |
addAttributeTag(XMLWriter out,
String name,
Object value) |
protected void |
addAttributeTag(XMLWriter out,
String name,
String value) |
protected void |
hook_edgeAttribute(XMLWriter out,
E edge) |
protected void |
hook_graphAttribute(XMLWriter out) |
protected void |
hook_nodeAttribute(XMLWriter out,
V node) |
protected void |
saveEdges(XMLWriter out,
Collection<E> edges) |
protected void |
saveNodes(XMLWriter out,
Collection<V> nodes) |
protected String |
stringNodeOrder(Collection nodeOrder) |
void |
write(OutputStreamWriter os,
Collection<V> vertices,
Collection<E> edges) |
protected final String graphClassName
protected final StyleManager<V,E extends Edge<V>> styleManager
protected final NodeAttributesReader nReader
protected final EdgeAttributesReader eReader
public void write(OutputStreamWriter os, Collection<V> vertices, Collection<E> edges) throws IOException
IOException
protected void saveNodes(XMLWriter out, Collection<V> nodes) throws IOException
IOException
protected void saveEdges(XMLWriter out, Collection<E> edges) throws IOException
IOException
protected void addAttributeTag(XMLWriter out, String name, int value) throws IOException
IOException
protected void addAttributeTag(XMLWriter out, String name, boolean value) throws IOException
IOException
protected void addAttributeTag(XMLWriter out, String name, String value) throws IOException
IOException
protected void addAttributeTag(XMLWriter out, String name, Object value) throws IOException
IOException
protected void hook_graphAttribute(XMLWriter out) throws IOException
IOException
protected void hook_nodeAttribute(XMLWriter out, V node) throws IOException
IOException
protected void hook_edgeAttribute(XMLWriter out, E edge) throws IOException
IOException
protected String stringNodeOrder(Collection nodeOrder)
Copyright © 2005–2020. All rights reserved.