-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
…implement them.
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
4 comments
on commit 01f3d8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jrtom Is there a plan to replace these classes with equivalent ones from Guava common.graph? Or are you working under the assumption that Trees aren't that useful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jbduncan There are tree-related classes in the common.graph jung-api@ as of a commit shortly before this one: https://github.com/jrtom/jung/tree/common.graph/jung-api/src/main/java/edu/uci/ics/jung/graph
Specifically, the CTree classes. Those are likely going to get renamed (suggestions welcome) but they do in fact exist. :)
It's an open question right now as to whether those will end up existing in common.graph or in JUNG, but I wanted them to be available in JUNG because a lot of existing code (layouts and samples) assumed that we had trees, and I do think that they're generally useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, I see! Many thanks for the clarification @jrtom.
Is the C in CTree short for anything in particular?
If CTree doesn't make it to Guava, then calling it JungTree might be a possibility? (But having said that, I don't think it's a very good idea, because it sounds a bit egotistical to me. 😉)
Or if the obvious choice of Tree no longer exists in the JUNG 3.0-SNAPSHOT code base (or is planned for removal), then CTree can eventually be renamed to that.
Thought I'd throw in my two cents. 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"CTree" was always intended to be a temporary name. In this case the "C" stands for "common" as in (Guava's) common.graph. I needed a separate name while I navigated the transition, and wanted to not spend time spinning on name selection at the time, and that's what I came up with.
I agree that JungTree is not a good name for at least a couple of reasons. :)
Since JUNG's original Tree has now been nuked, that name is certainly available.
Moving this discussion to issue #83 so that it doesn't get buried here.
Thanks for your feedback.
@jrtom I'd be happy to eventually see this method return a
Stream
for the purposes of laziness and "new"-ness, but I don't know if laziness is proven to be better in this case than returning a pre-calculatedSet
by some metric, and I also don't know if you're considering making JUNG 3.0 require Java 8 or not...