-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainFirst.py
More file actions
32 lines (27 loc) · 846 Bytes
/
Copy pathMainFirst.py
File metadata and controls
32 lines (27 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from numpy import *
import numpy as np
import random
import math
import os
import time
import pandas as pd
import csv
import math
import random
def ReadMyCsv(SaveList, fileName):
csv_reader = csv.reader(open(fileName))
for row in csv_reader: # 注意表头
SaveList.append(row)
return
def StorFile(data, fileName):
with open(fileName, "w", newline='') as csvfile:
writer = csv.writer(csvfile)
writer.writerows(data)
return
from FirstAllNodeEdge.NodeEdgeFeatureGenerate import MyNodeEdgeAttributeGenerate
AllNode, AllEdge, AllNodeAttribute = MyNodeEdgeAttributeGenerate()
#
from FirstAllNodeEdge.NodeAttributeNum import MyNodeAttributeNum
AllNodeNum, AllNodeAttributeNum = MyNodeAttributeNum()
from FirstAllNodeEdge.EdgeNumExchange import MyEdgeNumExchange
AllEdgeNum = MyEdgeNumExchange()