How do I write a python code that creates relation back from matrix? Particularly the parts that say FILL IN

后端 未结 0 1779
谎友^
谎友^ 2020-12-02 12:02
def rel_to_matrix(Rel):                ## Creates a matrix where the rows, columns are indexed by elements of A, and entry encodes if (a,b) is in R or not.
 A = Rel[         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题