public class CBGraph extends prefuse.data.Graph
| Modifier and Type | Field and Description |
|---|---|
static String |
DISTANCE
Label edge field for storing case distances
|
static prefuse.data.Schema |
EDGE_SCHEMA
edge table schema used for generated Graphs
|
static String |
LABEL
Name node field included in generated Graphs
|
static prefuse.data.Schema |
LABEL_SCHEMA
Node table schema used for generated Graphs
|
static String |
NODE_CLASS
Class node field included in generated Graphs
|
DEFAULT_NODE_KEY, DEFAULT_SOURCE_KEY, DEFAULT_TARGET_KEY, EDGES, INDEGREE, INEDGES, INLINKS, LINKS_SCHEMA, m_directed, m_edgeTuples, m_links, m_longKey, m_nidx, m_nkey, m_nodeTuples, m_skey, m_spanning, m_tkey, NODES, OUTDEGREE, OUTEDGES, OUTLINKS, UNDIRECTED| Constructor and Description |
|---|
CBGraph()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addCase(String name,
String solution)
Adding a case as a Node.
|
int |
addDistance(int case1,
int case2,
float distance)
Adding a case as a Node.
|
void |
generateGraph()
Hand coded Graph.
|
void |
generateGroups(prefuse.Visualization vis,
prefuse.visual.VisualGraph vg)
Hand coded groups.
|
addEdge, addEdge, addGraphModelListener, addLink, addNode, addNodeRow, clear, clearEdges, clearSpanningTree, createLinkTable, dispose, edgeCheck, edgeRows, edgeRows, edgeRows, edges, edges, fireGraphEvent, getAdjacentNode, getAdjacentNode, getDegree, getDegree, getEdge, getEdge, getEdge, getEdgeCount, getEdges, getEdgeSourceField, getEdgeTable, getEdgeTargetField, getInDegree, getInDegree, getKey, getNode, getNodeCount, getNodeFromKey, getNodeIndex, getNodeKeyField, getNodes, getNodeTable, getOutDegree, getOutDegree, getSourceNode, getSourceNode, getSpanningTree, getSpanningTree, getTargetNode, getTargetNode, inEdgeRows, inEdges, init, initLinkTable, inNeighbors, isDirected, neighbors, nodeCheck, nodeRows, nodes, outEdgeRows, outEdges, outNeighbors, remLink, removeAllGraphModelListeners, removeEdge, removeEdge, removeGraphModelListener, removeNode, removeNode, removeTuple, setEdgeTable, setTupleManagers, tuples, tuples, updateDegrees, updateDegrees, updateNodeDataaddColumn, addColumn, addColumn, addColumn, addSet, addTuple, containsSet, containsTuple, getSet, getTupleCount, hasSet, isAddColumnSupported, removeAllSets, removeSet, setNames, sets, setTupleaddColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuplespublic static final String LABEL
public static final String NODE_CLASS
public static final String DISTANCE
public static final prefuse.data.Schema LABEL_SCHEMA
public static final prefuse.data.Schema EDGE_SCHEMA
public CBGraph()
public void generateGraph()
public void generateGroups(prefuse.Visualization vis, prefuse.visual.VisualGraph vg)
public int addCase(String name, String solution)
public int addDistance(int case1, int case2, float distance)
Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.