pgmpy
pgmpy copied to clipboard
[ENH] Add `get_stats` method to `DAG` class
The DAG class represents the graphical structure underlying all of the BN classes. It would be nice to have a get_stats method implemented that returns some summary statistics on the structure of the DAG. The following stats can be included:
- Number of nodes
- Number of root nodes
- Number of leaf nodes
- Number of edges
- Edge density
- No. of connected components
- No of v-structures
- Average number of parents (average markov blanket size)
- Maximum number of parents of a node (max in-degree)
Hi @ankurankan , can I work on this?
Hi @ankurankan , if this opportunity is still open and you allow it, I would like to contribute to this as well, possibly working together with @Anushka-2406 . Please let me know if that would be possible.