Last active
August 29, 2015 14:25
-
-
Save aaronpk/5cbe2b53cfe566f356cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
links = [ | |
{:a => :z}, | |
{:b => :z}, | |
{:c => :z}, | |
{:d => :y}, | |
{:e => :x}, | |
{:e => :w}, | |
{:e => :v}, | |
{:f => :u}, | |
{:f => :t}, | |
{:g => :t} | |
] | |
expected_clusters = [ | |
{:sources => [:a,:b,:c], :targets => [:z], :text => "a, b and c linked to z"}, | |
{:sources => [:d], :targets => [:y], :text => "d linked to y"}, | |
{:sources => [:e], :targets => [:x,:w,:v], :text => "e linked to x, w, and v"}, | |
{:sources => [:f,:g], :targets => [:u,:t], :text => "f and g linked to u and t"} | |
] | |
Author
aaronpk
commented
Jul 26, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment