Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3761736
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:40:19+00:00 2026-05-19T10:40:19+00:00

I use Graphviz (mainly dot and fdp) to automatically generate some diagrams that I

  • 0

I use Graphviz (mainly dot and fdp) to automatically generate some diagrams that I need. For these diagrams I need some special arrowheads that are not a part of the standard collection of arrows: A small black triangle inside a large white triangle, and the same with the black triangle pointing downwards.

What is the best way to add such arrowheads? I don’t mind hacking the source code, if necessary. Where should I start?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:40:20+00:00Added an answer on May 19, 2026 at 10:40 am

    You have to change to source code for that. Take a look at “lib/common/arrows.c”.
    You will find that you have to:

    • Add a #define like ARR_TYPE_YOURARROWNAME
    • add a entry in Arrownames[] with the name you will use in the code for your arrow and the define.
    • write the prototype of your arrow function (see around row 115), read the points below
    • add your function in the Arrowtypes[] array an entry with the define you wrote previously, the pen width, the name of your arrow function which will be something like arrow_type_yourarrowname
    • write your own arrow function.

    In order to write your function take a look at arrow_type_normal(), it takes 6 parameters: job (you don’t have to care about this, just use it like in this function), two points (‘p’ and ‘u’), arrowsize, penwidth and flag.
    If you don’t care about making different versions of your arrowhead, or if you wish to ignore the modifiers (inverted arrows and the like) ignore the flag parameter.

    Then, the function basically takes the two points p and u (which are structures with ‘x’ and ‘y’ attributes in them) and combines them creating an array called a[] passed to gvrender_polygon() which will finally render your arrow shape.
    arrow_type_normal() also mess with the penwidth and arrowwidth.

    Summarizing: prepare graphviz to accept your arrow name doing the first steps then create a function that will create the arrow shape and that will call gvrender_polygon or gvrender_polyline (if you wish).

    I didn’t try yet, but it should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the GraphViz tools to generate some dependency graphs but I'm
I'm wanting to use QuickGraph to draw some graphs in C# using GraphViz. I've
Use case: I find a piece of code that I do not understand at
I'm trying to use graphviz to do something similar to UML class diagrams. I
I'm trying to use Graphviz dot (but am willing to use something else) to
I have decided that I really need to get some flowcharts for reverse engineering
I'm trying to use graphviz on media wiki as a documentation tool for software.
Until now i have used Graphviz to programmatically create diagrams and graphs. Recently, I
I want to use graphviz in order to draw for a given graph all
I woud like to generate graphs using GraphViz and display them on an ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.