Class SepsetMapDci
Stores a map from pairs of nodes to separating sets--that is, for each unordered pair of nodes {node1, node2} in a graph, stores a set of nodes conditional on which node1 and node2 are independent (where the nodes are considered as variables) or stores null if the pair was not judged to be independent. (Note that if a sepset is non-null and empty, that should means that the compared nodes were found to be independent conditional on the empty set, whereas if a sepset is null, that should mean that no set was found yet conditional on which the compared nodes are independent. So at the end of the search, a null sepset carries different information from an empty sepset.)> 0
We cast the variable-like objects to Node to allow them either to be variables explicitly or else to be graph nodes that in some model could be considered as variables. This allows us to use d-separation as a graphical indicator of what independendence in models ideally should be.> 0
- Version:
- $Id: $Id
- Author:
- Robert Tillman
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for SepsetMapDci.SepsetMapDci(SepsetMapDci map) Constructor for SepsetMapDci.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanget.Retrieves the sepset previously set for {x, y}, or null if no such set was previously set.getSeparatedPairs.Retrieves the set of all condioning sets for {x, y} or null if no such set was ever setstatic SepsetMapGenerates a simple exemplar of this class to test serialization.voidSets the sepset for {x, y} to be z.voidset(Node x, LinkedHashSet<Node> z) set.intsize()size.toString()toString.
- 
Constructor Details- 
SepsetMapDcipublic SepsetMapDci()Constructor for SepsetMapDci. 
- 
SepsetMapDciConstructor for SepsetMapDci. - Parameters:
- map- a- SepsetMapDciobject
 
 
- 
- 
Method Details- 
serializableInstanceGenerates a simple exemplar of this class to test serialization.- Returns:
- a SepsetMapobject
 
- 
setSets the sepset for {x, y} to be z. Note that {x, y} is unordered.
- 
getRetrieves the sepset previously set for {x, y}, or null if no such set was previously set.
- 
getSetRetrieves the set of all condioning sets for {x, y} or null if no such set was ever set
- 
setset. - Parameters:
- x- a- Nodeobject
- z- a- LinkedHashSetobject
 
- 
getget. - Parameters:
- x- a- Nodeobject
- Returns:
- a LinkedHashSetobject
 
- 
getSeparatedPairsgetSeparatedPairs. - Returns:
- a Setobject
 
- 
equals
- 
sizepublic int size()size. - Returns:
- a int
 
- 
toStringtoString. 
 
-