GraphFactory: Added comments, updated error handling
GraphFactory: Added comments, updated error handling

brunyuriy/adasim,ngocpq/adasim,brunyuriy/adasim,brunyuriy/adasim,ngocpq/adasim,brunyuriy/adasim,brunyuriy/adasim,ngocpq/adasim