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
nodesFields inherited from class mgui.interfaces.graphs.InterfaceAbstractGraph
attributes, graphListeners, isDestroyed, name, treeNode, treeNodes, xml_block, xml_count, xml_itr, xml_nodesFields 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 booleanaddGraphEdge(AbstractGraphEdge edge)Adds an edge to this graph.booleanaddGraphNode(AbstractGraphNode node)Adds a node to this graph.booleanremoveGraphEdge(AbstractGraphEdge edge)Removes the given graph edge.booleanremoveGraphNode(AbstractGraphNode node)Removes the given node.abstract booleansetFromNetwork(AbstractNetwork net)Methods inherited from class mgui.interfaces.graphs.DefaultGraph
addGraphEdge, addVertex, clone, getPopupMenu, getTreeLabel, getVertexByLabel, handlePopupEvent, removeGraphNode, setFromGraph, showPopupMenuMethods 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, writeXMLMethods 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, removeVertexMethods 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, outDegreeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.uci.ics.jung.graph.Graph
addEdge, getOpposite, getPredecessorCount, getSuccessorCount, inDegree, isPredecessor, isSuccessor, outDegreeMethods 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:DefaultGraphAdds a node to this graph. Returnstrueif the node was added; returnsfalseif it (or a node of the same label) already exists.- Overrides:
addGraphNodein classDefaultGraph- Returns:
-
removeGraphNode
Description copied from class:DefaultGraphRemoves the given node. Returnstrueif it was removed;falseif it was not found.- Overrides:
removeGraphNodein classDefaultGraph- Returns:
-
addGraphEdge
Description copied from class:DefaultGraphAdds an edge to this graph. The endpoints of the edge must exists as nodes in this graph; otherwise, this method returnsfalse.- Overrides:
addGraphEdgein classDefaultGraph- Returns:
trueis edge was added;falseotherwise
-
removeGraphEdge
Description copied from class:DefaultGraphRemoves the given graph edge. Returnstrueif it was removed successfully;falseotherwise.- Overrides:
removeGraphEdgein classDefaultGraph- Returns:
-