Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
661ffc73
Commit
661ffc73
authored
May 24, 2014
by
Tiago Peixoto
Browse files
Fix some trivial compilation warnings
parent
2ffa62b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/graph/generation/graph_complete.hh
View file @
661ffc73
...
...
@@ -31,12 +31,12 @@ struct get_complete
template
<
class
Graph
>
void
operator
()(
Graph
&
g
,
size_t
N
,
bool
directed
,
bool
self_loops
)
const
{
for
(
in
t
i
=
0
;
i
<
N
;
++
i
)
for
(
size_
t
i
=
0
;
i
<
N
;
++
i
)
add_vertex
(
g
);
for
(
in
t
i
=
0
;
i
<
N
;
++
i
)
for
(
size_
t
i
=
0
;
i
<
N
;
++
i
)
{
for
(
in
t
j
=
directed
?
0
:
i
;
j
<
N
;
++
j
)
for
(
size_
t
j
=
directed
?
0
:
i
;
j
<
N
;
++
j
)
{
if
(
!
self_loops
&&
j
==
i
)
continue
;
...
...
@@ -53,12 +53,12 @@ struct get_circular
void
operator
()(
Graph
&
g
,
size_t
N
,
size_t
k
,
bool
directed
,
bool
self_loops
)
const
{
for
(
in
t
i
=
0
;
i
<
N
;
++
i
)
for
(
size_
t
i
=
0
;
i
<
N
;
++
i
)
add_vertex
(
g
);
for
(
in
t
i
=
0
;
i
<
N
;
++
i
)
for
(
size_
t
i
=
0
;
i
<
N
;
++
i
)
{
for
(
in
t
j
=
i
;
j
<
i
+
k
+
1
;
++
j
)
for
(
size_
t
j
=
i
;
j
<
i
+
k
+
1
;
++
j
)
{
if
(
!
self_loops
&&
j
==
i
)
continue
;
...
...
src/graph/layout/graph_radial.cc
View file @
661ffc73
...
...
@@ -99,7 +99,7 @@ struct do_get_radial
vertex_t
w
=
target
(
*
e
,
g
);
new_layer
.
push_back
(
w
);
if
(
layers
.
size
()
-
1
==
level
[
w
])
if
(
int
(
layers
.
size
()
)
-
1
==
level
[
w
])
last
=
false
;
}
if
(
out_degree
(
v
,
g
)
==
0
)
...
...
src/graph/numpy_bind.hh
View file @
661ffc73
...
...
@@ -154,7 +154,7 @@ public:
const
StrideList
&
strides
)
:
base_t
(
data
,
sizes
)
{
for
(
in
t
i
=
0
;
i
<
dim
;
++
i
)
for
(
size_
t
i
=
0
;
i
<
dim
;
++
i
)
base_t
::
stride_list_
[
i
]
=
strides
[
i
];
}
};
...
...
@@ -191,7 +191,7 @@ boost::multi_array_ref<ValueType,dim> get_array(boost::python::object points)
}
vector
<
size_t
>
shape
(
dim
);
for
(
in
t
i
=
0
;
i
<
dim
;
++
i
)
for
(
size_
t
i
=
0
;
i
<
dim
;
++
i
)
shape
[
i
]
=
PyArray_DIMS
(
pa
)[
i
];
vector
<
size_t
>
stride
(
dim
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment