First version with multigraph