taboege / graph-ci Goto Github PK
View Code? Open in Web Editor NEWCompute separation in undirected graphs and DAGs
License: Artistic License 2.0
Compute separation in undirected graphs and DAGs
License: Artistic License 2.0
In this code, @M
is created from symbols of 1..$n
graph-ci/lib/Cube/Variables.pm
Lines 65 to 70 in 651e7e6
but its subsets are then used to generate names of variables. This ignores the set
parameter to the constructor which tells which symbol to use for which element of the ground set.
The graph packages don't support isolated vertices. This makes ->moralize
return a wrong graph when the invocant is disconnected:
Graph::Directed->new(qw(12 23 45))->moralize(1,2,4)->vertices #= (1, 2)
The vertex 4 is isolated in the ancestral graph and gets lost completely in the undirected moral graph. I think connected graphs and the ->ci
method in general are unaffected, but still this could be troublesome.
I think I recently discovered that the reverse
in
graph-ci/lib/Cube/Variables.pm
Line 67 in 651e7e6
is wrong. The correct ordering is produced without reverse
. I do not know why it is there or if the implementation of that module changed...
I wonder what computation I needed this code for and if the result was wrong because of this.
The conditioning sets in
graph-ci/lib/Cube/Variables.pm
Line 70 in 651e7e6
graph-ci/lib/Cube/Variables.pm
Line 116 in 651e7e6
should be sorted. Otherwise lookup may fail. This is probably not needed in the first case, but the second case has user-controlled input.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.