-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEdge.java
More file actions
91 lines (70 loc) · 2.43 KB
/
Copy pathEdge.java
File metadata and controls
91 lines (70 loc) · 2.43 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* Copyright 2018 Alibaba Group Holding Limited. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
package graph_data_parser;
import java.util.ArrayList;
import java.util.HashMap;
public class Edge {
private long src_id;
private long dst_id;
private int edge_type;
private float weight;
private HashMap<Integer, ArrayList<Long>> uint64_feature;
private HashMap<Integer, ArrayList<Float>> float_feature;
private HashMap<Integer, String> binary_feature;
public Edge() {
uint64_feature = new HashMap<>();
float_feature = new HashMap<>();
binary_feature = new HashMap<>();
}
public long getSrc_id() {
return src_id;
}
public void setSrc_id(long src_id) {
this.src_id = src_id;
}
public long getDst_id() {
return dst_id;
}
public void setDst_id(long dst_id) {
this.dst_id = dst_id;
}
public int getEdge_type() {
return edge_type;
}
public void setEdge_type(int edge_type) {
this.edge_type = edge_type;
}
public float getWeight() {
return weight;
}
public void setWeight(float weight) {
this.weight = weight;
}
public HashMap<Integer, ArrayList<Long>> getUint64_feature() {
return uint64_feature;
}
public void setUint64_feature(HashMap<Integer, ArrayList<Long>> uint64_feature) {
this.uint64_feature = uint64_feature;
}
public HashMap<Integer, ArrayList<Float>> getFloat_feature() {
return float_feature;
}
public void setFloat_feature(HashMap<Integer, ArrayList<Float>> float_feature) {
this.float_feature = float_feature;
}
public HashMap<Integer, String> getBinary_feature() {
return binary_feature;
}
public void setBinary_feature(HashMap<Integer, String> binary_feature) {
this.binary_feature = binary_feature;
}
}