added isGhost to edge type