create dual graph