monora / rgl

RGL is a framework for graph data structures and algorithms in Ruby.
https://monora.github.io/rgl/
Other
415 stars 59 forks source link

Refactor the edge/vertex options handling, add README and example image #94

Closed r0ckarong closed 1 year ago

r0ckarong commented 1 year ago

Did some more work. Now the big config hashes are not needed anymore. It will just check for each vertex/edge if a property was set to the options and apply that. Adjusted the test. Updated the README with an example too.

@monora Please have a look.

r0ckarong commented 1 year ago

Sorry for the confusing spam. I realized that this was the version with the fewest commits to get all the fixes in. Disregard the other PRs.

r0ckarong commented 1 year ago

Turns out I misunderstood the shorthand for initializing edges in a DirectedGraph. This PR is good to go.

monora commented 1 year ago

Rebased and squash your commits. Please check 6338b905802.

r0ckarong commented 1 year ago

Rebased and squash your commits. Please check 6338b90.

The README still had the outdated test in it. #95