public
Created

Graphviz files for reference graph refactoring example

  • Download Gist
after.dot
DOT
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
digraph AlphaSoup {
"@state0"
"@state1"
"@state2"
node[shape=box]
"E.report"
node[color=green]
"A#ones"
"B#zeros"
"B#get_state"
node[color=orange]
"A#report"
"C#report"
"E.report" -> "A#report"
"E.report" -> "C#report"
"A#report" -> "B#zeros"
"A#report" -> "A#ones"
"A#ones" -> "B#get_state"
"B#zeros" -> "@state0"
"B#get_state" -> "@state1"
"C#report" -> "@state2"
}
before.dot
DOT
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
digraph AlphaSoup {
"@state0"
"@state1"
"@state2"
node[shape=box]
"E.report"
node[color=red]
"B#munge_state"
"B#get_all_the_state"
"B#get_state"
"D#get_state"
node[color=orange]
"A#report"
"C#report"
"E.report" -> "A#report"
"E.report" -> "C#report"
"A#report" -> "B#get_all_the_state"
 
"B#get_all_the_state" -> "B#munge_state"
"B#get_all_the_state" -> "B#get_state"
"B#get_all_the_state" -> "D#get_state"
"B#get_all_the_state" -> "@state1"
"B#munge_state" -> "B#get_state"
"B#get_state" -> "@state0"
"C#report" -> "D#get_state"
"D#get_state" -> "@state2"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.