Added toigraph function. Working.

TODO: Run a community detection alg.