public class MotifD extends Graphs.Motifs
Modifier and Type | Class and Description |
---|---|
class |
MotifD.M
The fully parameterised MotifD Model of Graphs.
|
Graphs.GERadaptive, Graphs.GERfixed, Graphs.IndependentEdges, Graphs.Motifs, Graphs.Skewed
UPModel.Est, UPModel.Transform
Function.Native.WithInverse
Function.Cts2Cts, Function.Cts2Cts2Cts, Function.CtsD2CtsD, Function.HasInverse, Function.Native, Function.Native2, Function.Native3
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Modifier and Type | Field and Description |
---|---|
int |
sgMaxV
Bounds [sgMinV, sgMaxV] on |V| for the motifs (patterns) that
the
estimator will search for (but not
necessarily find). |
int |
sgMinV
Bounds [sgMinV, sgMaxV] on |V| for the motifs (patterns) that
the
estimator will search for (but not
necessarily find). |
Discretes.Bounded |
upmE
|
mdlMotif, mdlNmotifs, verbosity
Modifier and Type | Method and Description |
---|---|
protected boolean |
clearV(Graph g,
java.util.BitSet free,
Graph.Induced instnc,
java.util.BitSet of_instnc)
?Obsolete; 'instnc' only uses Vertices in 'free'?
|
protected boolean |
clearV2(Graph g,
java.util.BitSet free,
Graph.Induced instnc,
java.util.BitSet of_instnc)
?Obsolete; 'instnc' only uses Vertex-pairs (V2) in 'free'?
|
UPModel.Est |
estimator(Value ps)
Return an Estimator for a MotifD
Model . |
static void |
main(java.lang.String[] argv)
Developer's debugging tests; main() will "go away" one day.
|
MotifD.M |
sp2Model(double msg1,
double msg2,
Value sp)
Return a fully parameterised MotifD
Model . |
Vector |
stats(boolean add,
Value ss0,
Value ss1)
Combine sufficient statisticses 'ss0' and 'ss1' additively
(add=true), or remove ss1 from ss0 (add=false).
|
Vector |
stats(Vector ds,
int lo,
int hi)
Sufficient statistics are elements [lo, hi)
of the data-set ds itself.
|
greedy, greedy, msgMotifs, msgMotifs
public final Discretes.Bounded upmE
public final int sgMinV
public final int sgMaxV
public MotifD(Value dp)
public Vector stats(Vector ds, int lo, int hi)
public Vector stats(boolean add, Value ss0, Value ss1)
UPModel
stats(ds,lo,hi)
.public MotifD.M sp2Model(double msg1, double msg2, Value sp)
Model
.sp2Model
in class Graphs.Motifs
public UPModel.Est estimator(Value ps)
Model
. Parameters 'ps'
are for upmV
.estimator(ps). Estimating mdlV
is standard but finding good motifs
is hard so
heuristics are used. The time complexity should be approximately
O(#G.V.dsgMaxV-1), given a data-set of #G Graphs of
average size V and average degree d.protected boolean clearV(Graph g, java.util.BitSet free, Graph.Induced instnc, java.util.BitSet of_instnc)
protected boolean clearV2(Graph g, java.util.BitSet free, Graph.Induced instnc, java.util.BitSet of_instnc)
public static void main(java.lang.String[] argv)
Test
.main(argv)