EdgesOrVerticesHaveImportedIDs
(
IGraph oGraph,
Boolean bCheckEdges
)
{
Debug.Assert(oGraph != null);
AssertValid();
// When the workbook was read, arrays of all the edge and vertex
// metadata key names were stored on the graph. Get the relevant
// array.
Object oAllMetadataKeysAsObject;
if ( oGraph.TryGetValue(
bCheckEdges ? ReservedMetadataKeys.AllEdgeMetadataKeys :
ReservedMetadataKeys.AllVertexMetadataKeys,
typeof ( String[] ), out oAllMetadataKeysAsObject) )
{
if ( ( (String[] )oAllMetadataKeysAsObject ).Contains(
CommonTableColumnNames.ImportedID) )
{
return (true);
}
}
return (false);
}