Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://bitbucket.org/eulerian-ext/cpm2022/
07 June 2022, 06:37:20 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    No releases to show
  • d7c2ca6
  • /
  • README.txt
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:8c68f4a028ea8e4112c8788badbcab0a5d770570
origin badgedirectory badge
swh:1:dir:d7c2ca6a257600d6d7176b876370c456496af5a2
origin badgerevision badge
swh:1:rev:d7eb1ac39fc78b1266f9ffddf7707c0d474c44c8
origin badgesnapshot badge
swh:1:snp:2e825771f7a787fb8b347f3205119f38732b947e

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: d7eb1ac39fc78b1266f9ffddf7707c0d474c44c8 authored by huiping chen on 04 April 2022, 18:34:55 UTC
README.txt edited online with Bitbucket
Tip revision: d7eb1ac
README.txt
Source code for the paper 'Making de Bruijn Graphs Eulerian' 
by G. Bernardini, H.Chen,  G. Loukides, S. P. Pissis, L. Stougie and M.Sweering that is published at the CPM 2022

33rd Annual Symposium on Combinatorial Pattern Matching (CPM), 2022.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

COMPILATION AND EXAMPLE
The implementation of our approach that is used in experiments compiles and runs on a small example with ./compile.sh 

Before compiling, please install the Boost library and change the <path for Boost> in compile.sh to the loaction of your Boost.


INFORMATION ABOUT THE INPUT AND OUTPUT

1. CAB
Input parameters:
	toygraph: This is the input graph. In the file, each line represents an edge and its multiplicity in the graph, e.g. 'ACGG CGGT 10'.

Output:

Size of Distinct Edges = 1347
Total Edges = 1400
--------- Find #.Components ---------------
Number of vertices: 1319
Total number of components: 2
Runtime find all components: 20 milliseconds
------------get the information of graph-------------
#. Imbalanced Nodes  = 100
Runtime for create AC Machine : 2 milliseconds
Runtime for Phase 1 : 20 milliseconds
Cost for Component Connection :  2
Runtime Phase 2: 0 milliseconds
Runtime for all: 22 milliseconds
Extension Cost  = 251



2. SAB
Input parameters:
	toygraph: This is the input graph. In the file, each line represents an edge and its multiplicity in the graph, e.g. 'ACGG CGGT 10'.
	toygraph.superstring : This is a SCS string which is used to connect the graph. We use 'toygraph.fna' as input to the greedy algorithm [1] to get the 'toygraph.superstring' file, the algorithm can be found at https://github.com/tsnorri/compact-superstring.

Output:

Size of Distinct Edges = 1347
Total Edges = 1400
Runtime for create find edge to connect component : 1 milliseconds
Cost for connect component = 1
#. Imbalanced Nodes  = 100
Runtime for create AC Machine : 0 milliseconds
Runtime Phase 2: 0 milliseconds
Extension Cost  = 252



3. MGR
Input parameters:
	toygraph: This is the input graph. In the file, each line represents an edge and its multiplicity in the graph, e.g. 'ACGG CGGT 10'.
	overlap.txt : This is a file for all-pairs overlap of the distinct edges in the toygraph. We use 'edges.txt' as input to the algorithm [2] to get the 'overlap.txt' file, the algorithm can bu found at https://github.com/felipelouza/apsp.
	k-1 : This is the parameter of (k-1)-mer in the paper.

Output:
	
Size of Distinct Edges = 1347
Number of  Vertex = 1347
---------------Greedy--------------------
Final Cost  = 260

Time taken by Greedy: 1599 miilliseconds


REFERENCES


[1]  Jarno Alanko and Tuukka Norri. Greedy shortest common superstring approximation in compact space.In24th SPIRE, volume 10508 ofLecture Notes in Computer Science, pages 1–13. Springer, 2017.

[2]Tustumi, W. H. A., Gog, S., Telles, G. P., Louza, F.A. (2016). An improved algorithm for the all-pairs suffix-prefix problem. Journal of Discrete Algorithms, 47, 34-43, http://www.sciencedirect.com/science/article/pii/S1570866716300053.

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API