第41490题 单选题
下面的程序使用出边的邻接表表达有向图,则下列选项中哪个是它表达的图?( )。
class Edge:
    def __init__(selft,e = None,next = None):
        self.e = e
        self.next = next
class Node:
    def __init__(self,first = None):
        self.first = first

e = [Edge() for i in range(5)]
e = [Edge(1,None), Edge(2,e[2]), Edge(3,None), Edge(2,None), Edge(0,None)]
n = [e[0], e[1], e[3], e[4]]
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析