add comment
This commit is contained in:
parent
dcb6e7910c
commit
a252631cc9
|
@ -80,6 +80,8 @@ func parse(cmd *cobra.Command, args []string) {
|
||||||
a := graph.AdjacencyMatrix()
|
a := graph.AdjacencyMatrix()
|
||||||
out := mat.Formatted(a, fmtOptions...)
|
out := mat.Formatted(a, fmtOptions...)
|
||||||
|
|
||||||
|
// for matlab and python formats, %#v outputs as matrix and %v is
|
||||||
|
// oneline, but for standard format, it's the opposite, so we xor
|
||||||
if (matlabFmt || pythonFmt) != oneline {
|
if (matlabFmt || pythonFmt) != oneline {
|
||||||
fmt.Printf("%#v\n", out)
|
fmt.Printf("%#v\n", out)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue