-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfibonode.java
75 lines (69 loc) · 1.25 KB
/
fibonode.java
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
/**
* @author Sonal Joshi
*
*/
public class fibonode {
private int degree;
fibonode left, right, child, parent;
private String keyword;
private int count;
private boolean childcut;
fibonode(String keyword, int count){
this.right = this;
this.left = this;
this.parent = null;
this.child = null;
this.degree = 0;
this.count = count;
this.keyword = keyword;
this.childcut = false;
}
/**
* @return the degree
*/
public int getDegree() {
return degree;
}
/**
* @param degree the degree to set
*/
public void setDegree(int degree) {
this.degree = degree;
}
/**
* @return the keyword
*/
public String getKeyword() {
return keyword;
}
/**
* @param keyword the keyword to set
*/
public void setKeyword(String keyword) {
this.keyword = keyword;
}
/**
* @return the count
*/
public int getCount() {
return count;
}
/**
* @param count the count to set
*/
public void setCount(int count) {
this.count = count;
}
/**
* @return the childcut
*/
public boolean isChildcut() {
return childcut;
}
/**
* @param childcut the childcut to set
*/
public void setChildcut(boolean childcut) {
this.childcut = childcut;
}
}