Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
4a9bf9f6
Commit
4a9bf9f6
authored
Jan 30, 2009
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation in 64 bit architecture
parent
7ea1d8c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/graph/misc/graph_rewiring.cc
src/graph/misc/graph_rewiring.cc
+1
-1
src/graph/numpy_bind.hh
src/graph/numpy_bind.hh
+1
-1
No files found.
src/graph/misc/graph_rewiring.cc
View file @
4a9bf9f6
...
...
@@ -32,7 +32,7 @@ using namespace boost::lambda;
void
random_rewire
(
GraphInterface
&
gi
,
string
strat
,
bool
self_loops
,
bool
parallel_edges
,
size_t
seed
)
{
rng_t
rng
(
seed
);
rng_t
rng
(
(
uint32_t
)
seed
);
GraphInterface
::
edge_index_map_t
edge_index
=
any_cast
<
GraphInterface
::
edge_index_map_t
>
(
gi
.
GetEdgeIndex
());
...
...
src/graph/numpy_bind.hh
View file @
4a9bf9f6
...
...
@@ -84,7 +84,7 @@ python::object wrap_vector_not_owned(vector<ValueType>& vec)
{
PyArrayObject
*
ndarray
;
int
val_type
=
mpl
::
at
<
numpy_types
,
ValueType
>::
type
::
value
;
int
size
=
vec
.
size
();
npy_intp
size
=
vec
.
size
();
if
(
vec
.
empty
())
ndarray
=
(
PyArrayObject
*
)
PyArray_SimpleNew
(
1
,
&
size
,
val_type
);
else
...
...
Write
Preview
Markdown
is supported
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