From a252631cc9d761858d5691743d55af8bdb66bcbe Mon Sep 17 00:00:00 2001 From: filifa Date: Sat, 3 May 2025 22:46:28 -0400 Subject: [PATCH] add comment --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index d46454b..a43fd45 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -80,6 +80,8 @@ func parse(cmd *cobra.Command, args []string) { a := graph.AdjacencyMatrix() 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 { fmt.Printf("%#v\n", out) } else {