de.cesr.more.manipulate.network
Class MAggregator

java.lang.Object
  extended by de.cesr.more.manipulate.network.MAggregator

public class MAggregator
extends Object

Aggregates several nodes to a single one in combining links

Date:
31.10.2011

Constructor Summary
MAggregator()
           
 
Method Summary
static
<AgentType,EdgeType extends MoreEdge<? super AgentType>>
boolean
aggregateNodes(MoreNetwork<AgentType,EdgeType> network, AgentType survivingAgent, AgentType otherAgent)
          Aggregates two node to a single one (the first node given).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MAggregator

public MAggregator()
Method Detail

aggregateNodes

public static <AgentType,EdgeType extends MoreEdge<? super AgentType>> boolean aggregateNodes(MoreNetwork<AgentType,EdgeType> network,
                                                                                              AgentType survivingAgent,
                                                                                              AgentType otherAgent)
Aggregates two node to a single one (the first node given). It aggregates the links of both nodes at the surviving node. The other node is not deleted since this would cause trouble when RS tries to delete the agent from context and thus network projection.

Parameters:
network -
survivingAgent -
otherAgent -
Returns: