Everything2
Near Matches
Ignore Exact
Full Text
Everything2

digraph

created by root

(thing) by Magenta (7.3 y) (print)   ?   (I like it!) Sat Nov 13 1999 at 14:24:39

Two letters combined into one composite one, such as ae or oe, or various vowels and even a few consonants with an accent or a tilde. AEneas was a phoenecian, so he never ate jalapen~os. Everything needs to support digraphs. Blah.

(thing) by pi (3.2 wk) (print)   ?   (I like it!) Sat Nov 13 1999 at 14:24:39

In graph theory, a digraph is a directed graph. The same as a graph, except elements of the edge set are ordered pairs, not unordered pairs.

If (a,b) is an edge the edge (b,a) doesn't necessarily exist.

(thing) by AT (3.6 mon) (print)   ?   (I like it!) Fri Jun 22 2001 at 20:27:09

Digraphs are two-character punctuation tokens in programming languages that can replace a single character. They are usually used to write certain characters not present in older character maps (most notably ISO-646).

Pascal introduced the idea of digraphs. It defined a small set of digraphs to get around the problematic brackets and curly braces. Pascal defines the following digraphs:

  • (* means {
  • *) means }
  • (. means [
  • .) means ]

The 1999 revision of ISO C (C99) and ISO C++ define a set of digraphs, in addition to the standard C90 trigraphs. The digraphs were added to the standards due complaints that the original trigraphs were ugly and hard to read. The digraphs provide only a slight improvement. The digraphs accepted in C are:

  • <% means {
  • %> means }
  • <: means [
  • :> means ]
  • %: means #
  • %:%: means ##
Here is a sample with trigraphs:
??=include <stdio.h>

int main(int argc, char *argv??(??)) ??<
    printf("Hello World??/n");
??>

And now with digraphs:

%:include <stdio.h>

int main(int argc, char *argv<: :>) <%
    printf("Hello World??/n");
%>

Maybe a little bit better, but it hardly seems worth the effort.


(definition) by Webster 1913 (print) 1 C! Tue Dec 21 1999 at 23:04:39

Di"graph (?), n. [Gr. = twice + a writing, to write.]

Two signs or characters combined to express a single articulated sound; as ea in head, or th in bath.

 

© Webster 1913.


printable version
chaos

Trigraph directed graph diphthong graph theory
LITHP graph frequency analysis Network
Infinite monkeys theorem Analyzing spam: A journey into conspiracy theory and steganography Latin Extended B graph orientation
How to hide your hard disk porn stash Finnish ISO-646 Dysfunctional spelling
Scottish pronunciation Chromatic number discrete mathematics Breathing marks in Greek
Xanth HTML attributes consonant gradation hiragana
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
What you are reading:
Why Jane Kisses the King
Translating Poetry
Methods of execution
Vengeance Served Cold; or, A Pyrrhic Victory
St. James Infirmary Blues
Factual Faction for the Freedom of Fine Facts
So this one-legged man walks into a bar
Shogun - Total War
A summer's evening (erotica)
Richard Francis Burton
Is your teenager concerned about inequality and pollution? Call a drug counselor.
chess
If you can't write something nice, don't write anything at all
New Writeups
Meezzio
Gotlandssnus(thing)
argv
Astral Plane(idea)
Madara
One Winged Angel(fiction)
Tom Rook
Talk is cheap(poetry)
shaogo
Adelle Davis(person)
Aerobe
race car g sfjsgsd(poetry)
Binah
Dream Log: July 5, 2008(dream)
StrawberryFrog
Forgotten things in space(idea)
antigravpussy
velvet revolution fairy tale(idea)
Heitah
Nerve agent VX(thing)
Pavlovna
shite(idea)
wonton
Days and nights come together in a slow falling down(fiction)
Pavlovna
wee(idea)
katherine
root log: July 2008(log)
Madara
There’s nothing like a trail of blood to find your way back home(fiction)
This affordable entertainment brought to you by The Everything Development Company