Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-igraph
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-igraph
Commits
c5f3b13a
Commit
c5f3b13a
authored
Feb 21, 2020
by
Kai Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove Layout
parent
c3b93097
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
16 additions
and
27 deletions
+16
-27
haskell_igraph.c
cbits/haskell_igraph.c
+0
-1
haskell-igraph.cabal
haskell-igraph.cabal
+3
-8
config.h
igraph/include/config.h
+1
-4
bytestring.h
include/bytestring.h
+1
-1
haskell_attributes.h
include/haskell_attributes.h
+1
-1
haskell_igraph.h
include/haskell_igraph.h
+1
-1
Algorithms.hs
src/IGraph/Algorithms.hs
+2
-2
Layout.chs
src/IGraph/Algorithms/Layout.chs
+1
-1
Internal.chs
src/IGraph/Internal.chs
+3
-1
Constants.chs
src/IGraph/Internal/Constants.chs
+1
-1
stack.yaml
stack.yaml
+0
-4
processIgraph.sh
tools/processIgraph.sh
+2
-2
No files found.
cbits/haskell_igraph.c
View file @
c5f3b13a
#include <igraph/igraph.h>
#include "haskell_attributes.h"
#include "haskell_attributes.h"
const
igraph_attribute_table_t
igraph_haskell_attribute_table
=
{
const
igraph_attribute_table_t
igraph_haskell_attribute_table
=
{
...
...
haskell-igraph.cabal
View file @
c5f3b13a
cabal-version: 2.2
cabal-version: 2.2
name: haskell-igraph
name: haskell-igraph
version: 0.8.0
.0
version: 0.8.0
synopsis: Bindings to the igraph C library.
synopsis: Bindings to the igraph C library
(v0.8.0)
.
description: igraph<"http://igraph.org/c/"> is a library for creating
description: igraph<"http://igraph.org/c/"> is a library for creating
and manipulating large graphs. This package provides the Haskell
and manipulating large graphs. This package provides the Haskell
interface of igraph.
interface of igraph.
...
@@ -28,10 +28,6 @@ extra-source-files:
...
@@ -28,10 +28,6 @@ extra-source-files:
README.md
README.md
ChangeLog.md
ChangeLog.md
Flag graphics
Description: Enable graphics output
Default: False
library
library
exposed-modules:
exposed-modules:
IGraph.Internal.Initialization
IGraph.Internal.Initialization
...
@@ -45,7 +41,7 @@ library
...
@@ -45,7 +41,7 @@ library
IGraph.Algorithms.Structure
IGraph.Algorithms.Structure
IGraph.Algorithms.Community
IGraph.Algorithms.Community
IGraph.Algorithms.Clique
IGraph.Algorithms.Clique
IGraph.Algorithms.Layout
--
IGraph.Algorithms.Layout
IGraph.Algorithms.Motif
IGraph.Algorithms.Motif
IGraph.Algorithms.Generators
IGraph.Algorithms.Generators
IGraph.Algorithms.Isomorphism
IGraph.Algorithms.Isomorphism
...
@@ -62,7 +58,6 @@ library
...
@@ -62,7 +58,6 @@ library
, containers
, containers
, data-ordlist
, data-ordlist
, primitive
, primitive
, split
, singletons
, singletons
extra-libraries: stdc++
extra-libraries: stdc++
...
...
igraph/include/config.h
View file @
c5f3b13a
...
@@ -11,10 +11,8 @@
...
@@ -11,10 +11,8 @@
#define HAVE_RINTF 1
#define HAVE_RINTF 1
#define HAVE_ROUND 1
#define HAVE_ROUND 1
#define HAVE_SNPRINTF 1
#define HAVE_SNPRINTF 1
#undef HAVE_ISFINITE
/* libraries */
/* libraries */
#define HAVE_GMP 1
#define HAVE_MEMORY_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRINGS_H 1
...
@@ -38,5 +36,4 @@
...
@@ -38,5 +36,4 @@
#define PACKAGE_URL ""
#define PACKAGE_URL ""
#define PACKAGE_VERSION "0.8.0"
#define PACKAGE_VERSION "0.8.0"
#define STDC_HEADERS 1
#define STDC_HEADERS 1
#define VERSION "0.8.0"
#define VERSION "0.8.0"
#undef YYTEXT_POINTER
\ No newline at end of file
include/bytestring.h
View file @
c5f3b13a
#ifndef HASKELL_IGRAPH_BYTESTRING
#ifndef HASKELL_IGRAPH_BYTESTRING
#define HASKELL_IGRAPH_BYTESTRING
#define HASKELL_IGRAPH_BYTESTRING
#include
<igraph/igraph.h>
#include
"igraph.h"
typedef
struct
bytestring_t
{
typedef
struct
bytestring_t
{
unsigned
long
int
len
;
unsigned
long
int
len
;
...
...
include/haskell_attributes.h
View file @
c5f3b13a
#ifndef HASKELL_IGRAPH_ATTRIBUTE
#ifndef HASKELL_IGRAPH_ATTRIBUTE
#define HASKELL_IGRAPH_ATTRIBUTE
#define HASKELL_IGRAPH_ATTRIBUTE
#include "igraph
/igraph
.h"
#include "igraph.h"
#include "bytestring.h"
#include "bytestring.h"
#include <string.h>
#include <string.h>
...
...
include/haskell_igraph.h
View file @
c5f3b13a
#ifndef HASKELL_IGRAPH
#ifndef HASKELL_IGRAPH
#define HASKELL_IGRAPH
#define HASKELL_IGRAPH
#include
<igraph/igraph.h>
#include
"igraph.h"
void
haskelligraph_init
();
void
haskelligraph_init
();
...
...
src/IGraph/Algorithms.hs
View file @
c5f3b13a
...
@@ -2,7 +2,7 @@ module IGraph.Algorithms
...
@@ -2,7 +2,7 @@ module IGraph.Algorithms
(
module
IGraph
.
Algorithms
.
Structure
(
module
IGraph
.
Algorithms
.
Structure
,
module
IGraph
.
Algorithms
.
Community
,
module
IGraph
.
Algorithms
.
Community
,
module
IGraph
.
Algorithms
.
Clique
,
module
IGraph
.
Algorithms
.
Clique
,
module
IGraph
.
Algorithms
.
Layout
--
, module IGraph.Algorithms.Layout
,
module
IGraph
.
Algorithms
.
Motif
,
module
IGraph
.
Algorithms
.
Motif
,
module
IGraph
.
Algorithms
.
Generators
,
module
IGraph
.
Algorithms
.
Generators
,
module
IGraph
.
Algorithms
.
Isomorphism
,
module
IGraph
.
Algorithms
.
Isomorphism
...
@@ -12,7 +12,7 @@ module IGraph.Algorithms
...
@@ -12,7 +12,7 @@ module IGraph.Algorithms
import
IGraph.Algorithms.Structure
import
IGraph.Algorithms.Structure
import
IGraph.Algorithms.Community
import
IGraph.Algorithms.Community
import
IGraph.Algorithms.Clique
import
IGraph.Algorithms.Clique
import
IGraph.Algorithms.Layout
--
import IGraph.Algorithms.Layout
import
IGraph.Algorithms.Motif
import
IGraph.Algorithms.Motif
import
IGraph.Algorithms.Generators
import
IGraph.Algorithms.Generators
import
IGraph.Algorithms.Isomorphism
import
IGraph.Algorithms.Isomorphism
...
...
src/IGraph/Algorithms/Layout.chs
View file @
c5f3b13a
...
@@ -14,7 +14,7 @@ import Foreign
...
@@ -14,7 +14,7 @@ import Foreign
import IGraph
import IGraph
{#import IGraph.Internal #}
{#import IGraph.Internal #}
#include "
igraph/
igraph.h"
#include "
haskell_
igraph.h"
data LayoutMethod =
data LayoutMethod =
KamadaKawai { kk_seed :: !(Maybe [(Double, Double)])
KamadaKawai { kk_seed :: !(Maybe [(Double, Double)])
...
...
src/IGraph/Internal.chs
View file @
c5f3b13a
...
@@ -132,7 +132,6 @@ import Data.List (transpose)
...
@@ -132,7 +132,6 @@ import Data.List (transpose)
import qualified Data.Map.Strict as M
import qualified Data.Map.Strict as M
import System.IO.Unsafe (unsafePerformIO)
import System.IO.Unsafe (unsafePerformIO)
import Data.Either (fromRight)
import Data.Either (fromRight)
import Data.List.Split (chunksOf)
import Data.Serialize (Serialize, decode, encode)
import Data.Serialize (Serialize, decode, encode)
import Control.Monad.Primitive
import Control.Monad.Primitive
import Control.Exception (bracket_)
import Control.Exception (bracket_)
...
@@ -348,6 +347,9 @@ toColumnLists mptr = do
...
@@ -348,6 +347,9 @@ toColumnLists mptr = do
igraphMatrixCopyTo mptr ptr
igraphMatrixCopyTo mptr ptr
peekArray (r*c) ptr
peekArray (r*c) ptr
return $ chunksOf r $ map realToFrac xs
return $ chunksOf r $ map realToFrac xs
where
chunksOf _ [] = []
chunksOf i ls = take i ls : chunksOf i (drop i ls)
{#fun igraph_matrix_null as ^ { castPtr `Ptr Matrix' } -> `()' #}
{#fun igraph_matrix_null as ^ { castPtr `Ptr Matrix' } -> `()' #}
...
...
src/IGraph/Internal/Constants.chs
View file @
c5f3b13a
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE ForeignFunctionInterface #-}
module IGraph.Internal.Constants where
module IGraph.Internal.Constants where
#include "
igraph/
igraph.h"
#include "
haskell_
igraph.h"
{#enum igraph_neimode_t as Neimode {underscoreToCase}
{#enum igraph_neimode_t as Neimode {underscoreToCase}
deriving (Show, Eq) #}
deriving (Show, Eq) #}
...
...
stack.yaml
View file @
c5f3b13a
flags
:
haskell-igraph
:
graphics
:
false
packages
:
packages
:
-
'
.'
-
'
.'
...
...
tools/processIgraph.sh
View file @
c5f3b13a
...
@@ -19,7 +19,6 @@ cat <<EOT > include/config.h
...
@@ -19,7 +19,6 @@ cat <<EOT > include/config.h
#undef HAVE_ISFINITE
#undef HAVE_ISFINITE
/* libraries */
/* libraries */
#define HAVE_GMP 1
#define HAVE_MEMORY_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRINGS_H 1
...
@@ -94,4 +93,5 @@ ls -d1 $2/src/*.cc
...
@@ -94,4 +93,5 @@ ls -d1 $2/src/*.cc
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_TIMES_H 1
#define HAVE_TIMES_H 1
#define HAVE_TIME_H 1
#define HAVE_TIME_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
\ No newline at end of file
#define HAVE_GMP 1
\ No newline at end of file
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