CalculateChanges: Function to calculate the number of differences between adjaccent network
segments.
Description
This function takes the current network structure, compares each segment to
the next one, and calculates the number of changes. If soft information
sharing among nodes is active, then this procedure is only done for the
current target node.
Specifies the type of information sharing among nodes:
'soft' or 'hard'.
Value
Returns a vector with 4 elements: the number of coinciding edges,
the number of edges in the previous segment that are absent in the next one,
the number of edges in the next segment that are absent in the previous one
and the number of coinciding non-edges.