You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several improvements that can be made throughout the graphIO.c code:
All instances of return NOTOK and RetVal = NOTOK should be preceded with an explanatory ErrorMessage() to indicate what has gone wrong, in keeping with the level of information now provide by the new "graph6"reader. For example, there should be an error message in _ReadAdjList() that indicates loop edges are not supported.
The adjacency matrix reader should be amended to detect the failure of fscanf() and sscanf() as well as successful reading of integer values other than 0 and 1, and provide an appropriate ErrorMessage() and return NOTOK when such events occur.
Amend ReadAdjList() and _ReadLEDAGraph() to efficiently detect and report an error and return NOTOK if multiple edges are detected
Amend the LEDA graph format reader to detect a loop edge and report an error and return NOTOK
Amend _WriteAdjMatrix() and the new "graph6" writer to report an error and return NOTOK if the graph being written is a digraph.
The text was updated successfully, but these errors were encountered:
There are several improvements that can be made throughout the
graphIO.c
code:return NOTOK
andRetVal = NOTOK
should be preceded with an explanatoryErrorMessage()
to indicate what has gone wrong, in keeping with the level of information now provide by the new "graph6"reader. For example, there should be an error message in_ReadAdjList()
that indicates loop edges are not supported.fscanf()
andsscanf()
as well as successful reading of integer values other than 0 and 1, and provide an appropriateErrorMessage()
andreturn NOTOK
when such events occur.ReadAdjList()
and_ReadLEDAGraph()
to efficiently detect and report an error andreturn NOTOK
if multiple edges are detectedreturn NOTOK
_WriteAdjMatrix()
and the new "graph6" writer to report an error andreturn NOTOK
if the graph being written is a digraph.The text was updated successfully, but these errors were encountered: