سؤال

I am doing some Graph Theory analysis using the Java Jung 2.01 graph package. I am looking for some sort of function that will give me a degree sequence of the graph. I have been poking around the Jung documentation but do not see anything.

  1. How can I retrieve the degree sequence of a graph?
هل كانت مفيدة؟

المحلول

Currently, JUNG does not have such functionality. You could however loop over all nodes, retrieve all degrees and sort them accordingly. You could suggest it to the developing community over at their forums.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top