]>
granicus.if.org Git - graphviz/log
Matthew Fernandez [Mon, 23 May 2022 00:54:34 +0000 (17:54 -0700)]
sparse: take 'jcn' as a value instead of pointer
Matthew Fernandez [Mon, 23 May 2022 00:48:41 +0000 (17:48 -0700)]
sparse: take 'irn' as a value instead of pointer
Matthew Fernandez [Mon, 23 May 2022 00:40:36 +0000 (17:40 -0700)]
sparse: rename 'SparseMatrix_coordinate_form_add_entries'
Now that this function only adds a single entry, its name should more accurately
indicate this.
Matthew Fernandez [Mon, 23 May 2022 00:03:22 +0000 (17:03 -0700)]
sparse: rewrite 'memcpy' steps in 'SparseMatrix_coordinate_form_add_entries'
Now that we know these steps are always copying a single element, we can write
them simpler.
Matthew Fernandez [Sun, 22 May 2022 23:58:57 +0000 (16:58 -0700)]
sparse: remove 'nentries' from 'SparseMatrix_coordinate_form_add_entries'
This parameter is always passed as 1.
Matthew Fernandez [Fri, 27 May 2022 00:58:42 +0000 (00:58 +0000)]
Merge branch 'doc-cmd' into 'main'
populate directory cmd with doxygen comments
See merge request graphviz/graphviz!2653
Costa Shulyupin [Thu, 5 May 2022 15:42:50 +0000 (18:42 +0300)]
doxygen comments for cmd/smyrna
Costa Shulyupin [Thu, 5 May 2022 15:42:17 +0000 (18:42 +0300)]
doxygen comments for cmd/mingle
Costa Shulyupin [Thu, 5 May 2022 15:41:41 +0000 (18:41 +0300)]
doxygen comments for cmd, lefty, gvmap, lneato, dotty
Costa Shulyupin [Thu, 5 May 2022 15:40:10 +0000 (18:40 +0300)]
doxygen comments for cmd/gvmap
Costa Shulyupin [Thu, 5 May 2022 15:38:46 +0000 (18:38 +0300)]
doxygen comments for cmd/gvedit
Costa Shulyupin [Thu, 5 May 2022 15:37:33 +0000 (18:37 +0300)]
doxygen comments for cmd/edgepaint
symbol % prevents automatic link generation
Reference https://www.doxygen.nl/manual/autolink.html#linkclass
Costa Shulyupin [Thu, 5 May 2022 15:31:24 +0000 (18:31 +0300)]
doxygen comments for cmd/dot
Matthew Fernandez [Thu, 26 May 2022 16:43:23 +0000 (16:43 +0000)]
Merge branch 'smattr/
E952DFA7 -B513-45DE-B06B-
55EDD4629175 ' into 'main'
edgepaint: remove 'iter_max' parameter from 'node_distinct_coloring'
See merge request graphviz/graphviz!2690
Matthew Fernandez [Sun, 22 May 2022 17:08:54 +0000 (10:08 -0700)]
edgepaint: remove 'iter_max' parameter from 'node_distinct_coloring'
This is always set to 100.
Matthew Fernandez [Thu, 26 May 2022 06:22:01 +0000 (06:22 +0000)]
Merge branch 'smattr/
46AE87AD -E20D-448B-A034-
75D02874EF1D ' into 'main'
sparse: remove 'D' parameter from 'SparseMatrix_import_dot' that is always null
See merge request graphviz/graphviz!2673
Matthew Fernandez [Wed, 18 May 2022 15:19:48 +0000 (08:19 -0700)]
sparse: remove 'D' parameter from 'SparseMatrix_import_dot' that is always null
Matthew Fernandez [Thu, 26 May 2022 05:03:22 +0000 (05:03 +0000)]
Merge branch 'smattr/
11C3F22D -F3BE-483F-B2FF-
968986B76565 ' into 'main'
tred: replace a 'malloc' with cgraph alloc wrapper
See merge request graphviz/graphviz!2674
Matthew Fernandez [Tue, 17 May 2022 14:25:44 +0000 (07:25 -0700)]
tred: replace a 'malloc' with cgraph alloc wrapper
This addresses a case where allocation failure went unchecked.
Matthew Fernandez [Thu, 26 May 2022 04:01:41 +0000 (04:01 +0000)]
Merge branch 'doc-tools' into 'main'
populate directory cmd/tools with doxygen comments
See merge request graphviz/graphviz!2657
Costa Shulyupin [Fri, 6 May 2022 07:03:32 +0000 (10:03 +0300)]
doxygen comment for unflatten.c
Costa Shulyupin [Fri, 6 May 2022 07:03:20 +0000 (10:03 +0300)]
doxygen comment for tred.c
Costa Shulyupin [Fri, 6 May 2022 07:03:07 +0000 (10:03 +0300)]
doxygen comment for sccmap.c
Costa Shulyupin [Fri, 6 May 2022 07:02:43 +0000 (10:02 +0300)]
doxygen comment for nop.c
Costa Shulyupin [Fri, 6 May 2022 07:02:30 +0000 (10:02 +0300)]
doxygen comment for mmio.h
Costa Shulyupin [Fri, 6 May 2022 07:02:16 +0000 (10:02 +0300)]
doxygen comment for mm2gv.c
Costa Shulyupin [Fri, 6 May 2022 07:02:03 +0000 (10:02 +0300)]
doxygen comment for matrix_market.h
Costa Shulyupin [Fri, 6 May 2022 07:01:50 +0000 (10:01 +0300)]
doxygen comment for gxl2gv.c
Costa Shulyupin [Fri, 6 May 2022 07:01:38 +0000 (10:01 +0300)]
doxygen comment for gvpack.cpp
Costa Shulyupin [Fri, 6 May 2022 07:01:22 +0000 (10:01 +0300)]
doxygen comment for gvgen.c
Costa Shulyupin [Fri, 6 May 2022 07:01:02 +0000 (10:01 +0300)]
doxygen comment for gvcolor.c
Costa Shulyupin [Fri, 6 May 2022 07:00:50 +0000 (10:00 +0300)]
doxygen comment for gv2gxl.c
Costa Shulyupin [Fri, 6 May 2022 07:00:31 +0000 (10:00 +0300)]
doxygen comment for gv2gml.c
Costa Shulyupin [Fri, 6 May 2022 06:58:00 +0000 (09:58 +0300)]
doxygen comment for graphml2gv.c
Costa Shulyupin [Fri, 6 May 2022 06:57:43 +0000 (09:57 +0300)]
doxygen comment for gml2gv.h
Costa Shulyupin [Fri, 6 May 2022 06:57:25 +0000 (09:57 +0300)]
doxygen comment for gc.c
Costa Shulyupin [Fri, 6 May 2022 06:54:20 +0000 (09:54 +0300)]
doxygen comment for dijkstra.c
Costa Shulyupin [Fri, 6 May 2022 06:54:05 +0000 (09:54 +0300)]
doxygen comment for cvtgxl.c
Costa Shulyupin [Fri, 6 May 2022 06:53:33 +0000 (09:53 +0300)]
doxygen comment for convert.h
Costa Shulyupin [Fri, 6 May 2022 06:51:48 +0000 (09:51 +0300)]
doxygen comment for colxlate.c
Costa Shulyupin [Fri, 6 May 2022 06:51:16 +0000 (09:51 +0300)]
doxygen comment for ccomps.c
Costa Shulyupin [Fri, 6 May 2022 06:50:20 +0000 (09:50 +0300)]
doxygen comment for bcomps.c
Costa Shulyupin [Fri, 6 May 2022 06:48:15 +0000 (09:48 +0300)]
doxygen comment for acyclic.c
Matthew Fernandez [Thu, 26 May 2022 03:06:13 +0000 (03:06 +0000)]
Merge branch 'emitSearchGraph' into 'main'
fix emitSearchGraph for better representation
See merge request graphviz/graphviz!2647
Costa Shulyupin [Mon, 2 May 2022 03:18:08 +0000 (06:18 +0300)]
emitSearchGraph: show weights of search graph in labels
Before this patch using `weight` as `len` contradicted
predefined coordinates and changed layout.
Costa Shulyupin [Mon, 2 May 2022 03:10:07 +0000 (06:10 +0300)]
fix emitSearchGraph, use layout=neato and pos=x,y!
Function emitSearchGraph dumps internal state of
orthogonal routing search graph in dot format for debugging.
Output of the function is not used for final user output.
The functions already receives coordinates of nodes.
These coordinates should be used verbatim.
Before this patch `dot` changes locations of search graph nodes and
rendered output image is not useful.
This patch
- adds dummy layout `neato` because attribute `pos` is meaningful
for only for `neato` and `fdp`.
- adds "!" to force fixed positions by default.
Finally layout engine doesn't changes layout and positions of nodes.
References:
- https://graphviz.org/docs/attrs/pos/
- https://graphviz.org/docs/attr-types/point/
Matthew Fernandez [Thu, 26 May 2022 02:04:08 +0000 (02:04 +0000)]
Merge branch 'gvpr' into 'main'
Doxygen comments for gvpr
See merge request graphviz/graphviz!2648
Costa Shulyupin [Mon, 2 May 2022 14:52:15 +0000 (17:52 +0300)]
doxygen comment for lib/gvpr/gvpr.c
Costa Shulyupin [Mon, 2 May 2022 14:51:25 +0000 (17:51 +0300)]
doxygen comment for lib/gvpr/gvpr.h
Costa Shulyupin [Mon, 2 May 2022 14:50:10 +0000 (17:50 +0300)]
doxygen comment for cmd/gvpr
Matthew Fernandez [Wed, 25 May 2022 16:07:49 +0000 (16:07 +0000)]
Merge branch 'smattr/
C9DF4E16 -8634-4D4E-AAE0-
62E906147657 ' into 'main'
dotgen: squash -Wsign-conversion warning in 'doDot'
See merge request graphviz/graphviz!2692
Matthew Fernandez [Sun, 8 May 2022 20:02:31 +0000 (13:02 -0700)]
dotgen: squash -Wsign-conversion warning in 'doDot'
The compiler says:
dotinit.c: In function 'doDot':
dotinit.c:454:24: warning: conversion to 'unsigned int' from 'int' may change
the sign of the result [-Wsign-conversion]
454 | pinfo.margin = Pack;
| ^~~~
But from the surrounding code and the implementation of `getPack`, we can
statically determine that `Pack` is non-negative at this point.
Magnus Jacobsson [Wed, 25 May 2022 12:36:10 +0000 (12:36 +0000)]
Merge branch 'cleanup-arrow-length-use' into 'main'
remove unnecessary use of arrow_length function and make it static
See merge request graphviz/graphviz!2693
Magnus Jacobsson [Sun, 22 May 2022 15:33:22 +0000 (17:33 +0200)]
common: mark 'arrow_length' static
This function is no longer used outside of its containing file.
Magnus Jacobsson [Sun, 22 May 2022 15:27:26 +0000 (17:27 +0200)]
sameport: replace goto with return
Magnus Jacobsson [Sun, 22 May 2022 15:25:13 +0000 (17:25 +0200)]
sameport: remove unused n_arr field from same_t struct
Magnus Jacobsson [Sun, 22 May 2022 15:20:19 +0000 (17:20 +0200)]
sameport: remove unused arr_len field from same_t struct
Magnus Jacobsson [Wed, 25 May 2022 08:39:23 +0000 (08:39 +0000)]
Merge branch 'upgrade-centos7-docker-image' into 'main'
Upgrade Centos7 Dockerfile
See merge request graphviz/graphviz!2695
Magnus Jacobsson [Tue, 24 May 2022 09:39:29 +0000 (11:39 +0200)]
upgrade git to 2.36 in Centos7 Dockerfile
Version 2.24 is no longer available.
Fixes this error when building the Docker image:
Cannot open: https://repo.ius.io/7/x86_64/packages/g/git224-2.24.3-1.el7.ius.x86_64.rpm. Skipping.
Magnus Jacobsson [Tue, 24 May 2022 09:39:12 +0000 (11:39 +0200)]
upgrade epel-release to latest-7 in Centos7 Dockerfile
Version 7.12 is no longer available.
Fixes this error when building the Docker image:
Cannot open: https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm. Skipping.
Matthew Fernandez [Tue, 24 May 2022 05:29:07 +0000 (05:29 +0000)]
Merge branch 'smattr/
C351F03D -D182-43E4-92A6-
4A4308AF78B9 ' into 'main'
gvpr: squash -Wconversion warning from 'read' return
See merge request graphviz/graphviz!2675
Matthew Fernandez [Mon, 16 May 2022 04:31:25 +0000 (21:31 -0700)]
gvpr: squash -Wconversion warning from 'read' return
This call is asked to read an `int` length of bytes, so cannot return more than
`INT_MAX`.
Matthew Fernandez [Tue, 24 May 2022 04:20:19 +0000 (04:20 +0000)]
Merge branch 'smattr/
3A15FDA7 -0604-425F-A34A-
EBCF8A7B2050 ' into 'main'
gvpr: squash some -Wunused-parameter warnings
See merge request graphviz/graphviz!2676
Matthew Fernandez [Mon, 16 May 2022 04:42:45 +0000 (21:42 -0700)]
gvpr: remove unused 'uopts' parameter from 'scanArgs'
Matthew Fernandez [Mon, 16 May 2022 04:40:39 +0000 (21:40 -0700)]
gvpr: squash -Wunused-parameter warnings in 'matchval'
These parameters cannot be removed because this function is used as a callback.
Matthew Fernandez [Mon, 16 May 2022 04:39:37 +0000 (21:39 -0700)]
gvpr: squash -Wunused-parameter warnings in 'keyval'
These parameters cannot be removed because this function is used as a callback.
Matthew Fernandez [Mon, 16 May 2022 04:38:25 +0000 (21:38 -0700)]
gvpr: squash -Wunused-parameter warnings in 'convert'
These parameters cannot be removed because this function is used as a callback.
Matthew Fernandez [Mon, 16 May 2022 04:36:53 +0000 (21:36 -0700)]
gvpr: squash -Wunused-parameter warnings in 'binary'
These parameters cannot be removed because this function is used as a callback.
Matthew Fernandez [Mon, 16 May 2022 04:35:27 +0000 (21:35 -0700)]
gvpr: squash -Wunused-parameter warnings in 'refval'
These parameters cannot be removed because this function is used as a callback.
Matthew Fernandez [Mon, 16 May 2022 04:34:29 +0000 (21:34 -0700)]
gvpr: squash -Wunused-parameter warnings in 'setval'
These parameters cannot be removed because this function is used as a callback.
Matthew Fernandez [Tue, 24 May 2022 03:12:09 +0000 (03:12 +0000)]
Merge branch 'maze-doc' into 'main'
Doxygen comments for maze.c
Closes #2236
See merge request graphviz/graphviz!2661
Costa Shulyupin [Tue, 10 May 2022 16:04:57 +0000 (19:04 +0300)]
doxygen comment for mkMaze
Costa Shulyupin [Tue, 10 May 2022 16:02:51 +0000 (19:02 +0300)]
doxygen comment for mkMazeGraph
Costa Shulyupin [Tue, 10 May 2022 16:01:48 +0000 (19:01 +0300)]
doxygen comment for findSVert
Costa Shulyupin [Tue, 10 May 2022 16:01:25 +0000 (19:01 +0300)]
doxygen comment for createSEdges
Costa Shulyupin [Tue, 10 May 2022 16:00:36 +0000 (19:00 +0300)]
convert markSmall comment to doxygen
Costa Shulyupin [Tue, 10 May 2022 15:59:22 +0000 (18:59 +0300)]
doxygen comments for updateWt and updateWts
Costa Shulyupin [Tue, 10 May 2022 15:57:49 +0000 (18:57 +0300)]
doxygen comments for vcmpid and hcmpid
Costa Shulyupin [Tue, 10 May 2022 15:56:56 +0000 (18:56 +0300)]
doxygen comment for psdump
Matthew Fernandez [Tue, 24 May 2022 01:59:18 +0000 (01:59 +0000)]
Merge branch 'smattr/
5ACB60F9 -F951-4162-8F8C-
81C590EF69EB ' into 'main'
remove Autotools 'sort' discovery
See merge request graphviz/graphviz!2685
Matthew Fernandez [Sat, 21 May 2022 19:58:07 +0000 (12:58 -0700)]
remove Autotools 'sort' discovery
ea6b4c99ec32127619b6e5c3a5ff58be51aa4829 removed the last use of `$SORT` in the
Autotools build system.
Matthew Fernandez [Mon, 23 May 2022 15:16:58 +0000 (15:16 +0000)]
Merge branch 'smattr/
CEAAF3D2 -013D-47DF-AD73-
0ED48E8FFF5C ' into 'main'
ortho: some clean up of 'segCmp'
See merge request graphviz/graphviz!2689
Matthew Fernandez [Sun, 22 May 2022 02:36:02 +0000 (19:36 -0700)]
ortho: use early return style pervasively in 'segCmp'
Because the leaf of each conditional was returning, we can write all this logic
without `else`. The result seems marginally cleaner and easier to read.
Matthew Fernandez [Sun, 22 May 2022 02:28:01 +0000 (19:28 -0700)]
ortho: remove dead code in 'segCmp'
Squashes a warning about unreachable code by MSVC.
Matthew Fernandez [Mon, 23 May 2022 06:07:12 +0000 (06:07 +0000)]
Merge branch 'smattr/
4BC11EAE -57EF-4815-9C8B-
F1C944042E12 ' into 'main'
cgraph and common warning squashing and clean up
See merge request graphviz/graphviz!2681
Matthew Fernandez [Sat, 21 May 2022 03:35:31 +0000 (20:35 -0700)]
common: squash -Wsign-conversion, -Wconversion warnings
`byte` is known in-range in these instances.
Matthew Fernandez [Sat, 21 May 2022 03:30:19 +0000 (20:30 -0700)]
common: squash -Wswitch-default warning in 'closestSide'
This switch is exhaustive due to the containing loop.
Matthew Fernandez [Sat, 21 May 2022 03:28:21 +0000 (20:28 -0700)]
common: squash -Wswitch-default warning in 'cvtPt'
This switch is exhaustive, as `rankdir` is only intended to be one of the four
covered rank direction constants.
Matthew Fernandez [Sat, 21 May 2022 03:25:01 +0000 (20:25 -0700)]
common: use a C99 bool for 'LR' parameter of 'parse_reclbl'
Squashes a -Wconversion warning.
Matthew Fernandez [Sat, 21 May 2022 03:21:12 +0000 (20:21 -0700)]
common: squash -Wswitch-default warning in 'invflip_side'
This switch is exhaustive, as `rankdir` is only intended to be one of the four
covered rank direction constants.
Matthew Fernandez [Sat, 21 May 2022 03:12:22 +0000 (20:12 -0700)]
common: rename 'path' in 'cat_libfile', removing a -Wshadow warning
Matthew Fernandez [Sat, 21 May 2022 03:10:32 +0000 (20:10 -0700)]
common: use a 'size_t' for 'fread' return, squashing a -Wconversion warning
Matthew Fernandez [Sat, 21 May 2022 03:08:35 +0000 (20:08 -0700)]
common: cast stat size results, squashing -Wsign-conversion warnings
The `st_size` field coming out of the `stat` call is always non-negative.
Matthew Fernandez [Sat, 21 May 2022 02:33:02 +0000 (19:33 -0700)]
cgraph: take initial agxbuf backing memory as a char buffer
Removes some cast noise.
Matthew Fernandez [Sat, 21 May 2022 02:19:49 +0000 (19:19 -0700)]
cgraph: use char pointers instead of unsigned char pointers in agxbuf
This is simpler than casting at every usage site.
Matthew Fernandez [Sat, 21 May 2022 01:45:05 +0000 (18:45 -0700)]
smyrna: remove unnecessary casts in 'vertexCallback'
Matthew Fernandez [Mon, 23 May 2022 04:56:36 +0000 (04:56 +0000)]
Merge branch 'smattr/
2A1D6F79 -DE60-42C3-BE91-
E03A32CEAF49 ' into 'main'
gv2gxl: some cleanup and addressing unchecked allocations
See merge request graphviz/graphviz!2678
Matthew Fernandez [Fri, 20 May 2022 05:18:45 +0000 (22:18 -0700)]
gv2gxl: replace unchecked allocations with cgraph alloc helpers
Matthew Fernandez [Fri, 20 May 2022 05:16:14 +0000 (22:16 -0700)]
gv2gxl: undo micro-optimization in 'writeHdr'
Allocation within this function chose between an on-stack buffer and a
heap-allocated buffer based on the length of the input string. With a modern
performant allocator this is often a de-optimization. This change switches to
unconditionally using a heap-allocated buffer, simplifying the code.
Matthew Fernandez [Fri, 20 May 2022 05:11:53 +0000 (22:11 -0700)]
gv2gxl: undo micro-optimization in 'createEdgeId'
Allocation within this function chose between an on-stack buffer and a
heap-allocated buffer based on the length of the input string. With a modern
performant allocator this is often a de-optimization. This change switches to
unconditionally using a heap-allocated buffer, simplifying the code.