From: Vos, J. <jv...@an...> - 2003-06-25 21:12:33
|
To do this do something like node.clearEdgeFrom(otherNode); otherNode.clearEdgeTo(node); Jerry Vos ANL -----Original Message----- From: Duncan Robertson [mailto:dun...@sa...] Sent: Wednesday, June 25, 2003 4:03 PM To: Repast-Interest@Lists. Sourceforge. Net Subject: [Repast-interest] Removing Edges from Network Models Hello there Sorry for a question that may have a trivial answer. I have a network model that consists of a number of nodes that are connected by directed edges (DefaultNodes and DefaultEdges). The situation is that node is connected to otherNode. How do I remove both the edge from the node _and_ the edge _to_ the otherNode? As my node only has one edge directed to it, I can use node.clearInEdges(). But as the otherNode has more than one edge coming out of it, I cannot use otherNode.clearOutEdges() as it would remove _all_ otherNode's Out Edges, something that I do not want to do. (I am using Repast 1.4.) Any help much appreciated Duncan Robertson Said Business School University of Oxford |