pgmpy icon indicating copy to clipboard operation
pgmpy copied to clipboard

[ENH] Add `get_stats` method to `DAG` class

Open ankurankan opened this issue 8 months ago • 2 comments

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:

  1. Number of nodes
  2. Number of root nodes
  3. Number of leaf nodes
  4. Number of edges
  5. Edge density
  6. No. of connected components
  7. No of v-structures
  8. Average number of parents (average markov blanket size)
  9. Maximum number of parents of a node (max in-degree)

ankurankan avatar Mar 12 '26 10:03 ankurankan

Hi @ankurankan , can I work on this?

Anushka-2406 avatar Mar 12 '26 10:03 Anushka-2406

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.

White-D-coder avatar Mar 16 '26 18:03 White-D-coder