dbn2latex#

addselfedge#

gunfolds.viz.dbn2latex.addselfedge(G, v)[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • v

cdbn_single#

gunfolds.viz.dbn2latex.cdbn_single(G, u, scale=0.7, R=1, gap=0.5, mtype='lahid')[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • u ((guess) integer) – (guess) maximum under sampling rate

  • scale ((guess) float) –

  • R ((guess) integer) –

  • gap ((guess) float) –

  • mtype ((guess) string) –

Returns:

Return type:

cdbnprint#

gunfolds.viz.dbn2latex.cdbnprint(G, mtype='obs', bend=5, curve=5, R=1)[source]#

Prints out a compressed dbn repesentation of the graph in TikZ/Latex format

Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • mtype ((guess) string) –

  • bend ((guess) integer) –

  • curve ((guess) integer) –

  • R ((guess) integer) –

Returns:

Return type:

cdbnsingle#

gunfolds.viz.dbn2latex.cdbnsingle(g, scale=0.7, R=1, mtype='lahid')[source]#
Parameters:
  • g (dictionary (gunfolds graphs)) – gunfolds graph

  • scale ((guess) float) –

  • R ((guess) integer) –

  • mtype ((guess) string) –

Returns:

Return type:

cdbnwrap#

gunfolds.viz.dbn2latex.cdbnwrap(G, u, name='AAA', R=1, gap=0.5)[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • u ((guess) integer) – (guess) maximum under sampling rate

  • name ((guess) string) –

  • R ((guess) integer) –

  • gap ((guess) float) –

Returns:

Return type:

dbnprint#

gunfolds.viz.dbn2latex.dbnprint(G, s, mname='generic', w_gap=0.5, h_gap=0.5, type='obs', stl='')[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • s ((guess) integer) –

  • mname ((guess) string) –

  • w_gap ((guess) float) –

  • h_gap ((guess) float) –

  • type ((guess) string) –

  • stl ((guess) string) –

dict2graph#

gunfolds.viz.dbn2latex.dict2graph(D)[source]#
Parameters:

D (dictionary) –

Returns:

gunfolds graph

Return type:

dictionary (gunfolds graphs)

emacs_vars#

gunfolds.viz.dbn2latex.emacs_vars()[source]#

foldplot#

gunfolds.viz.dbn2latex.foldplot(G, steps=7, gap=0.5, R=1, name='AAA', stl='', bend=50, curve=10)[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • steps ((guess) integer) –

  • gap ((guess) float) –

  • R ((guess) integer) –

  • name ((guess) string) –

  • stl ((guess) string) –

  • bend

  • curve

g_single#

gunfolds.viz.dbn2latex.g_single(G, u, scale=0.7, R=1, gap=0.5, mtype='lahid', layout=None)[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • u (integer) – maximum under sampling rate

  • scale ((guess) float) –

  • R ((guess) integer) –

  • gap ((guess) float) –

  • mtype ((guess) string) –

  • layout

Returns:

Return type:

getangle#

gunfolds.viz.dbn2latex.getangle(A, B)[source]#

When A and B are two angles around the clock returns an angle of the line that is connecting them.

Parameters:
  • A

  • B

Returns:

returns an angle of the line that is connecting them.

Return type:

gmatrix_fold#

gunfolds.viz.dbn2latex.gmatrix_fold(G, m, n, R=1, mname='g', w_gap=0.5, h_gap=0.5, stl='', shift=0)[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • m

  • n

  • R

  • mname

  • w_gap

  • h_gap

  • stl

  • shift

gmatrix_list#

gunfolds.viz.dbn2latex.gmatrix_list(l, m, n, R=1, mname='g', w_gap=0.5, h_gap=0.5, stl='', shift=0)[source]#

Given a list of graphs prints them out as latex laying out each graph in a force-based layout

Parameters:
  • l

  • m

  • n

  • R

  • mname

  • w_gap

  • h_gap

  • stl

  • shift

gprint#

gunfolds.viz.dbn2latex.gprint(G, mtype='obs', bend=5, curve=5, R=1, layout=None)[source]#

Prints out an automatically layout compressed dbn repesentation of the graph in TikZ/Latex format

Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • mtype ((guess) string) –

  • bend ((guess) integer) –

  • curve ((guess) integer) –

  • R ((guess) integer) –

  • layout

Returns:

Return type:

graph2dict#

gunfolds.viz.dbn2latex.graph2dict(g)[source]#
Parameters:

g (dictionary (gunfolds graphs)) – gunfolds graph

Returns:

Return type:

gsingle#

gunfolds.viz.dbn2latex.gsingle(g, scale=0.7, R=1, mtype='lahid', layout=None)[source]#
Parameters:
  • g (dictionary (gunfolds graphs)) – gunfolds graph

  • scale ((guess) float) –

  • R ((guess) integer) –

  • mtype ((guess) string) –

  • layout

Returns:

Return type:

matrix_edges#

gunfolds.viz.dbn2latex.matrix_edges(G, s, mname='generic')[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • s ((guess) integer) –

  • mname ((guess) string) –

matrix_end#

gunfolds.viz.dbn2latex.matrix_end()[source]#

matrix_fold#

gunfolds.viz.dbn2latex.matrix_fold(G, m, n, R=1, mname='g', w_gap=0.5, h_gap=0.5, stl='')[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • m

  • n

  • R

  • mname

  • w_gap

  • h_gap

  • stl

matrix_grid#

gunfolds.viz.dbn2latex.matrix_grid(G, s, mname='generic', w_gap=0.5, h_gap=0.5, type='obs', stl='')[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • s ((guess) integer) –

  • mname ((guess) string) –

  • w_gap ((guess) float) –

  • h_gap ((guess) float) –

  • type ((guess) string) –

  • stl ((guess) string) –

matrix_list#

gunfolds.viz.dbn2latex.matrix_list(l, m, n, R=1, mname='g', w_gap=0.5, h_gap=0.5, stl='', shift=0)[source]#

Given a list of graphs prints them out as latex laying out each in a circle layout

Parameters:
  • l

  • m

  • n

  • R

  • mname

  • w_gap

  • h_gap

  • stl

  • shift

matrix_start#

gunfolds.viz.dbn2latex.matrix_start(mname='generic', w_gap=0.45, h_gap=0.5, stl='')[source]#

output_graph_figure#

gunfolds.viz.dbn2latex.output_graph_figure(g)[source]#

Given a graph will out put a latex file of the graph visualization to figures directory

Parameters:

g (dictionary (gunfolds graphs)) – gunfolds graph

paintSCC#

gunfolds.viz.dbn2latex.paintSCC(g, cm)[source]#
Parameters:
  • g (dictionary (gunfolds graphs)) – gunfolds graph

  • cm

unfoldplot#

gunfolds.viz.dbn2latex.unfoldplot(G, steps=7, repeats=5, gap=0.5, R=1, hg=0.1, wgap=0.7, name='AAA', stl='')[source]#
Parameters:
  • G (dictionary (gunfolds graphs)) – gunfolds format graph

  • steps ((guess) integer) –

  • repeats ((guess) integer) –

  • gap ((guess) float) –

  • R ((guess) integer) –

  • hg ((guess) float) –

  • wgap ((guess) float) –

  • name ((guess) string) –

  • stl ((guess) string) –