Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

{search,traverse}: clean up after recent changes #44

Merged
merged 5 commits into from May 12, 2015
Merged

Conversation

kortschak
Copy link
Member

Add internal package for (most) shared unexported types and factor test example graphs into named values.

Factor common types out into new graph/internal package.
This sort order was a lazy solution to sorting [][]int, so remove it.
Also remove unused remove method on johnsonGraph which was left over
from the implementation in gonum/plot/plotter.
@kortschak
Copy link
Member Author

ping @gonum/developers

@@ -398,6 +400,34 @@ func TestTarjanSCC(t *testing.T) {
}
}

// batageljZaversnikGraph is the example graph from
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth having an 'example graphs' package in internal so that way we only need to implement this once?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or possibly not in internal if we want to expose some easy examples (like in optimize)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy to do that in a later change (I think that this has merit for a number of reasons - including as a teaching resource), but I'd like to just get the place clean first.

I'll file an issue.

@btracey
Copy link
Member

btracey commented May 12, 2015

Code changes LGTM except for the one comment on the example graphs.


package internal

// A set is a set of integer identifiers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A set -> IntSet

And capital letters in the comments below.

@vladimir-ch
Copy link
Member

Also LGTM

kortschak added a commit that referenced this pull request May 12, 2015
{search,traverse}: clean up after recent changes
@kortschak kortschak merged commit 444fbd6 into master May 12, 2015
@kortschak kortschak deleted the clean-up branch May 12, 2015 01:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants