A naive vertex/edge implementation