edges return Python lists. Obviously, the above two commands will return two empty lists because we have not added any nodes or edges to graph G. Adding nodes.
確定! 回上一頁