A command line tool to visualize test cases in competitive programming.
競技プログラミングのテストケースを可視化するコマンドラインツール。
- Install Google Chrome
- Install
yarn
(ornpm
) yarn global add covi
(ornpm install --global covi
)
We use Carlo to render the GUI and it depends on Google Chrome.
# print available commands
covi --help
# visualize a directed graph
covi graph --directed < input.txt
N
: The number of nodesa_i
,b_i
: Edgei
(froma_i
tob_i
)c_i
: Label of edgei
N
a_1 b_1 [c_1]
a_2 b_2 [c_2]
:
a_M b_M [c_M]
# install dependencies
$ yarn install
# serve with hot reload
$ yarn start
# build for production
$ yarn run build