Created enum EdgeDirection and enum EdgeType.