def graph_bisect_1(): graph = mod_graph.Graph() graph.add_branch( mod_graph.Branch(nodes=[ 'a', 'b', mod_graph.Node(label='c', color=BLUE), 'd', 'e', '1.0', 'f', 'g', 'h', 'i', '2.0', 'j', mod_graph.Node(label='k', color=RED) ])) return graph
def graph_linearni_model_za_reset(): graph = mod_graph.Graph() graph.add_branch( mod_graph.Branch(nodes=[ 'a', 'b', 'c', 'd', 'e', mod_graph.Node(label='f', color=RED), mod_graph.Node(label='g', color=RED), mod_graph.Node(label='h', color=RED), mod_graph.Node(label='i', color=RED), mod_graph.Node(label='...', color=RED) ])) return graph
def graph_kreiranje_grane_2(): graph = mod_graph.Graph(column=6) graph.add_branch( mod_graph.Branch( label='master', nodes=['a', 'b', 'c', mod_graph.Node(label='', color=WHITE)])) graph.add_branch( mod_graph.Branch(label='eksperimentalna-grana', branch_from=graph.find_node('c'), row=1, nodes=[mod_graph.Node(label='', color=WHITE)])) return graph
def graph_linearni_model_za_reset_HEAD_1(): graph = mod_graph.Graph() graph.add_branch( mod_graph.Branch(reverse_arrows=True, nodes=[ 'a', 'b', 'c', 'd', 'e', mod_graph.Node(label='f', color=RED), mod_graph.Node(label='g', color=RED), mod_graph.Node(label='h', color=RED), mod_graph.Node(label='i(HEAD)', color=RED), ])) return graph
def graph_kreiranje_grane_1(): graph = mod_graph.Graph() graph.add_branch( mod_graph.Branch( nodes=['a', 'b', 'c', mod_graph.Node(label='', color=WHITE)])) return graph
def graph_linearni_sa_zadnjim_cvorom(): graph = mod_graph.Graph() graph.add_branch( mod_graph.Branch( nodes=['a', 'b', 'c', mod_graph.Node(label='d', color=BLUE)])) return graph
def graph_linearni_bez_zadnjeg_cvora_1(): graph = mod_graph.Graph() graph.add_branch( mod_graph.Branch( nodes=['a', 'b', 'c', mod_graph.Node(label=' ', color=WHITE)])) return graph
def graph_linearni_model_za_revert_2_revertano(): graph = mod_graph.Graph() graph.add_branch( mod_graph.Branch(nodes=[ 'a', 'b', 'c', 'd', 'e', mod_graph.Node(label='f', color=RED), 'g', 'h', 'i', 'j' ])) return graph
def graph_git_merge_01(): graph = mod_graph.Graph(column=6) graph.add_branch(mod_graph.Branch(label='master', color=BLUE, nodes='abc')) graph.add_branch( mod_graph.Branch(label='eksperimentalna-grana', branch_from=graph.find_node('c'), row=1, nodes=[mod_graph.Node(' ', color=WHITE)])) return graph