Package mgui.graphs.networks
Class AbstractNetworkGraph
java.lang.Object
edu.uci.ics.jung.graph.AbstractGraph<V,E>
edu.uci.ics.jung.graph.SparseGraph<AbstractGraphNode,AbstractGraphEdge>
mgui.interfaces.graphs.InterfaceAbstractGraph
mgui.interfaces.graphs.DefaultGraph
mgui.graphs.networks.AbstractNetworkGraph
- All Implemented Interfaces:
edu.uci.ics.jung.graph.Graph<AbstractGraphNode,AbstractGraphEdge>
,edu.uci.ics.jung.graph.Hypergraph<AbstractGraphNode,AbstractGraphEdge>
,java.io.Serializable
,NetworkGraphListener
,AttributeListener
,AttributeObject
,InterfaceObject
,PopupMenuObject
,NamedObject
,TreeObject
,CleanableObject
,XMLObject
,IconObject
- Direct Known Subclasses:
CorticalNetworkGraph
public abstract class AbstractNetworkGraph extends DefaultGraph
A graph which explicitly represents a connected network.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields inherited from class mgui.interfaces.graphs.DefaultGraph
nodes
Fields inherited from class mgui.interfaces.graphs.InterfaceAbstractGraph
attributes, graphListeners, isDestroyed, name, treeNode, treeNodes, xml_block, xml_count, xml_itr, xml_nodes
Fields inherited from class edu.uci.ics.jung.graph.SparseGraph
directed_edges, INCIDENT, INCOMING, OUTGOING, undirected_edges, vertex_maps
-
Constructor Summary
Constructors Constructor Description AbstractNetworkGraph()
-
Method Summary
Modifier and Type Method Description boolean
addGraphEdge(AbstractGraphEdge edge)
Adds an edge to this graph.boolean
addGraphNode(AbstractGraphNode node)
Adds a node to this graph.boolean
removeGraphEdge(AbstractGraphEdge edge)
Removes the given graph edge.boolean
removeGraphNode(AbstractGraphNode node)
Removes the given node.abstract boolean
setFromNetwork(AbstractNetwork net)
Methods inherited from class mgui.interfaces.graphs.DefaultGraph
addGraphEdge, addVertex, clone, getPopupMenu, getTreeLabel, getVertexByLabel, handlePopupEvent, removeGraphNode, setFromGraph, showPopupMenu
Methods inherited from class mgui.interfaces.graphs.InterfaceAbstractGraph
addEdge, addEdge, addEdge, addGraphListener, attributeUpdated, clean, destroy, fireGraphListeners, fireGraphListeners, getAttribute, getAttributes, getAttributeValue, getDefaultLayout, getDTD, getLabelEdges, getLabelNodes, getLocalName, getName, getNodes, getObjectIcon, getPopupMenu, getShortXML, getXML, getXML, getXMLSchema, graphUpdated, handleXMLElementEnd, handleXMLElementStart, handleXMLString, init, isDestroyed, issueTreeNode, removeAllEdges, removeAllNodes, removeGraphListener, setAttribute, setAttributes, setName, setTreeNode, toString, writeXML, writeXML, writeXML
Methods inherited from class edu.uci.ics.jung.graph.SparseGraph
addEdge, containsEdge, containsVertex, findEdge, findEdgeSet, getDefaultEdgeType, getDest, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getEndpoints, getFactory, getIncidentEdges, getInEdges, getNeighbors, getOutEdges, getPredecessors, getSource, getSuccessors, getVertexCount, getVertices, isDest, isSource, removeEdge, removeVertex
Methods inherited from class edu.uci.ics.jung.graph.AbstractGraph
addEdge, addEdge, addEdge, addEdge, degree, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.uci.ics.jung.graph.Graph
addEdge, getOpposite, getPredecessorCount, getSuccessorCount, inDegree, isPredecessor, isSuccessor, outDegree
Methods inherited from interface edu.uci.ics.jung.graph.Hypergraph
addEdge, addEdge, degree, getIncidentCount, getIncidentVertices, getNeighborCount, isIncident, isNeighbor
-
Constructor Details
-
AbstractNetworkGraph
public AbstractNetworkGraph()
-
-
Method Details
-
setFromNetwork
- Throws:
NetworkException
-
addGraphNode
Description copied from class:DefaultGraph
Adds a node to this graph. Returnstrue
if the node was added; returnsfalse
if it (or a node of the same label) already exists.- Overrides:
addGraphNode
in classDefaultGraph
- Returns:
-
removeGraphNode
Description copied from class:DefaultGraph
Removes the given node. Returnstrue
if it was removed;false
if it was not found.- Overrides:
removeGraphNode
in classDefaultGraph
- Returns:
-
addGraphEdge
Description copied from class:DefaultGraph
Adds an edge to this graph. The endpoints of the edge must exists as nodes in this graph; otherwise, this method returnsfalse
.- Overrides:
addGraphEdge
in classDefaultGraph
- Returns:
true
is edge was added;false
otherwise
-
removeGraphEdge
Description copied from class:DefaultGraph
Removes the given graph edge. Returnstrue
if it was removed successfully;false
otherwise.- Overrides:
removeGraphEdge
in classDefaultGraph
- Returns:
-